Word's references

S

slaprade

I am asking this again in hopes of someone knowing what to do here

I have a vs2007 project "MCTClass07" that I created using extensibility
add-in
for Word 2007. A .dotm is loaded by a third party application that makes
reference
to MCTClass07 as follows

Public MCTai As MCTClass07.Class07
' The architecture demands that a template provides this entry point.
However all other code can be implemented in the .NET code.
Public Function MSGatewayInitialize(Odbcstr As String, Libname As String,
recordID As Long, docName As String, ByRef rcMsg As String) As Long
Set MCTai = Application.COMAddIns.Item("MCTClass07.Connect").Object
.....

Call MCTai.InitDocument(ActiveDocument, Odbcstr, Libname, recordID) 'get
document parts from COM+
.....


For all of this to work, I have to load the .dotm file, switch to
developer/visual basic (ALT F11), selecte tools/references, locate the
MCTClass07.tlb file and add it anc check 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 (which loads the .dotm file)
I will get a dialog box "could not open macro storage".

If I check the tools/reference settings again, I see the MCTClass is checked
but labeld as "Missing". I uncheck the reference, close the reference
selection
dialog, reopen tools/references, locate and check the MCTClass.tlb
(still in the list), save the .dotm file and retry my application, everything
works fine.

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 seems to require the dropping
of the project and then locate and check it in VBA more often.

The registry enrtry for
HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\MCTClass07.Connect
shows the load behavior to be a 3 (which is what it needs to be)

So, how does Word come up with the MCTClass07.tlb as "MISSING" and how can I
prevent this?

Where does Word keep this information about tools\references...?

Is it possible to transfer that reference list with selected components to
other computers?

How can I implant that what should be referenced information to Word.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top