Rhys666
Programmer
- May 20, 2003
- 1,106
I have created a word ad-in to extend the personal details held by it. This consists of a form for viewing and editing the details, the code behind the form to control its events and properties, a module called from buttons added to the menu's, and a class module to handle as a middle tier to deal with the additional personal data. The data itself consists of an xml file.
My class validates existence of the xml file in the Application Data environment variable, and creates it if it does not exist. It has 9 read/write properties representing the additional data to be stored, (name, employee role, site location, fax etc), which are populated when the class is instantiated and are then available to the code behind the form. That all works fine, adding the add-in to the MS Word Start Up folder runs the add-in whenever you start Word, so additional personal information can be stored and edited by the user logged on at the time.
Is there any way I can access the class in this add-in from another add-in? If not, do you have any suggestions as to how to make the data presented by the class available in another add-in? Would the two add-ins be better of incorportated together, or should we simply replicate the code in the class in the other add-in. The other add-in is to provide extended mail-merge functionality and is fairly large, well, at least 10 forms and 20 or more modules for what they are trying to achieve.
I am not an Office developer, but a VB 6.0, and .Net Framework developer really. Although creating the functionality to extend the personal details available to Word was relatively easy to do, knowing how to make that same data available without we-producing the code doesn't seem to be documented anywhere.
Any light anyone can shed on this would be greatly appreciated. Thanks in advance.
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.
My class validates existence of the xml file in the Application Data environment variable, and creates it if it does not exist. It has 9 read/write properties representing the additional data to be stored, (name, employee role, site location, fax etc), which are populated when the class is instantiated and are then available to the code behind the form. That all works fine, adding the add-in to the MS Word Start Up folder runs the add-in whenever you start Word, so additional personal information can be stored and edited by the user logged on at the time.
Is there any way I can access the class in this add-in from another add-in? If not, do you have any suggestions as to how to make the data presented by the class available in another add-in? Would the two add-ins be better of incorportated together, or should we simply replicate the code in the class in the other add-in. The other add-in is to provide extended mail-merge functionality and is fairly large, well, at least 10 forms and 20 or more modules for what they are trying to achieve.
I am not an Office developer, but a VB 6.0, and .Net Framework developer really. Although creating the functionality to extend the personal details available to Word was relatively easy to do, knowing how to make that same data available without we-producing the code doesn't seem to be documented anywhere.
Any light anyone can shed on this would be greatly appreciated. Thanks in advance.
Rhys
Be careful that the light at the end of the tunnel isn't a train coming the other way.