R
Remittag
Greetings!
We wish to put forward a query regarding adding a custom menu in MS Word as
follows:-
Background
We are developing a software application using Visual Basic 6.0 (for the
Front-End GUI) and MS Access (as back-end database) that allows a user to
build, store, and organize a databank of MS Word documents. In the interface
of the application which allows a user to enter data, there is a section
where we have embedded an OLE (Object Linking and Embedding) container
control. The user has to double click this section, wherein an instance of MS
Word (if installed) is opened up. The user can now enter and save anything in
this Word document.
Query - Adding a Custom menu in MS Word
What we want to achieve is that while the user is working on a document in
MS Word, he should be able to send this document to our application without
actually opening our application. A possible solution according to us, is to
add a custom menu in MS Word titled something like "Export to MyOrganiser".
Clicking this menu will copy the document to the Data folder of our
application, and thus an entry will be created in our database.
Suggested solution 1 - Using the Macro feature in MS Word
Currently, we have implemented the above solution using the macro feature
available in MS Word. By using the macro feature, we have modified the MS
Word Normal Template to add the menu. This is working properly in case of MS
Word 97 version i.e a new document created, shows our custom menu. But, in
case of MS Word 2003 version, the new document created, does not show our
custom menu.
We wish to know whether it is right to modify the MS Word Normal template to
implement the above solution? If yes, then will this approach work with all
future versions of MS Word?
Suggested solution 2 - Creating an Add-in
Else, another possible solution according to us, is to create an Add-in. In
this case, we would request you to kindly suggest the procedure for the same.
It would be helpful if you provide some sample source code or examples.
Also, kindly inform if there is any other solution to add a custom menu,
besides the above ones suggested by us.
We look forward to your reply at the earliest.
We wish to put forward a query regarding adding a custom menu in MS Word as
follows:-
Background
We are developing a software application using Visual Basic 6.0 (for the
Front-End GUI) and MS Access (as back-end database) that allows a user to
build, store, and organize a databank of MS Word documents. In the interface
of the application which allows a user to enter data, there is a section
where we have embedded an OLE (Object Linking and Embedding) container
control. The user has to double click this section, wherein an instance of MS
Word (if installed) is opened up. The user can now enter and save anything in
this Word document.
Query - Adding a Custom menu in MS Word
What we want to achieve is that while the user is working on a document in
MS Word, he should be able to send this document to our application without
actually opening our application. A possible solution according to us, is to
add a custom menu in MS Word titled something like "Export to MyOrganiser".
Clicking this menu will copy the document to the Data folder of our
application, and thus an entry will be created in our database.
Suggested solution 1 - Using the Macro feature in MS Word
Currently, we have implemented the above solution using the macro feature
available in MS Word. By using the macro feature, we have modified the MS
Word Normal Template to add the menu. This is working properly in case of MS
Word 97 version i.e a new document created, shows our custom menu. But, in
case of MS Word 2003 version, the new document created, does not show our
custom menu.
We wish to know whether it is right to modify the MS Word Normal template to
implement the above solution? If yes, then will this approach work with all
future versions of MS Word?
Suggested solution 2 - Creating an Add-in
Else, another possible solution according to us, is to create an Add-in. In
this case, we would request you to kindly suggest the procedure for the same.
It would be helpful if you provide some sample source code or examples.
Also, kindly inform if there is any other solution to add a custom menu,
besides the above ones suggested by us.
We look forward to your reply at the earliest.