S
slaprade
I have a vs2007 project using created extensibility add-in for Word 2007. As
such I must load my dotm file, switch to developer/visual basic (ALT F11),
selected references, locate the .tlb file and add it. This all works fine as
does the .net code
The problem occurs (occasionally) as I make changes to the .net code.
Sometimes when I initiate the Word process, I will get a dialog box "could
not open macro storage".
When I start Word, load the .dotm file, ALT F11 to open VBA and check
references, I notice the .net project I am using is listed as missing. It
still has a check beside it. I uncheck to project, close references, open
references again, locate the project name (it is still in the available
refernces - just un checked), recheck the project, save and close the .dotm,
I am once again able to use word as expected with the addin functioning
correctly
This does not happen every time I change the project code. I often transfer
the solution and develop on other computers then transfer to solution back to
the original development computer. This effort always requires the dropping
of the project and then locate anc check it in VBA.
I expect this project to be in use for at least 5 years with many changes to
the code. I have worked out a deployment scheme that will auto deploy and
install the project as users login. The requirment to reload the reference in
VBA will be a problem.
Is there a registry change that I can record and push back during deployment?
Where is the information aboout loaded refences in VBA for Word maintained?
How can I inform Word (in an automated way) that the refernce to the .tlb
file is valid?
such I must load my dotm file, switch to developer/visual basic (ALT F11),
selected references, locate the .tlb file and add it. This all works fine as
does the .net code
The problem occurs (occasionally) as I make changes to the .net code.
Sometimes when I initiate the Word process, I will get a dialog box "could
not open macro storage".
When I start Word, load the .dotm file, ALT F11 to open VBA and check
references, I notice the .net project I am using is listed as missing. It
still has a check beside it. I uncheck to project, close references, open
references again, locate the project name (it is still in the available
refernces - just un checked), recheck the project, save and close the .dotm,
I am once again able to use word as expected with the addin functioning
correctly
This does not happen every time I change the project code. I often transfer
the solution and develop on other computers then transfer to solution back to
the original development computer. This effort always requires the dropping
of the project and then locate anc check it in VBA.
I expect this project to be in use for at least 5 years with many changes to
the code. I have worked out a deployment scheme that will auto deploy and
install the project as users login. The requirment to reload the reference in
VBA will be a problem.
Is there a registry change that I can record and push back during deployment?
Where is the information aboout loaded refences in VBA for Word maintained?
How can I inform Word (in an automated way) that the refernce to the .tlb
file is valid?