A
Alke Wiebenga
Hi all,
For starters, I've succesfully developed a .NET add-in voor Word 2002
using Shims and Office XP Interop Assemblies. The add-in is built in
such a way, that it becomes active only when a certain template file is
loaded into Word. The add-in actually does something like this on
startup (mind the seperate lines of execution after step 2!):
1) Add-in is loaded on Word startup
2) Add-in checks for certain template to be loaded
3a) The template is not loaded, the add-in doesn't do anything
3b) The template is loaded into Word, the add-in adds some buttons to a
toolbar belonging to the template.
My problem is as follows:
Word doesn't always seem to load the template in-time for the add-in to
notice that the template is loaded! For example: when I put the
template (the .dot file) into the Office\Startup folder, the add-in
works fine (that is: the add-in notices that the template is loaded and
adds the buttons to the toolbar). However, when I start Word from the
commandline and try to load the template using commandline arguments,
the add-in doesn't add the buttons to the toolbar! It seems to be as if
the template is loaded after the add-in is loaded. Again, this behavior
does not occur when the template is put into the Office\Startup folder.
Can anybody shed some light on this issue?! Am I right and is the
add-in loaded prior to the template when we use the commandline
options?!
Please help because we definitely do not want to put the template file
into the Office\Startup folder, because we wanted to use the template
to distribute the new functionality to specific users on our network,
not to all users.
Thanks in advance,
Alke Wiebenga
For starters, I've succesfully developed a .NET add-in voor Word 2002
using Shims and Office XP Interop Assemblies. The add-in is built in
such a way, that it becomes active only when a certain template file is
loaded into Word. The add-in actually does something like this on
startup (mind the seperate lines of execution after step 2!):
1) Add-in is loaded on Word startup
2) Add-in checks for certain template to be loaded
3a) The template is not loaded, the add-in doesn't do anything
3b) The template is loaded into Word, the add-in adds some buttons to a
toolbar belonging to the template.
My problem is as follows:
Word doesn't always seem to load the template in-time for the add-in to
notice that the template is loaded! For example: when I put the
template (the .dot file) into the Office\Startup folder, the add-in
works fine (that is: the add-in notices that the template is loaded and
adds the buttons to the toolbar). However, when I start Word from the
commandline and try to load the template using commandline arguments,
the add-in doesn't add the buttons to the toolbar! It seems to be as if
the template is loaded after the add-in is loaded. Again, this behavior
does not occur when the template is put into the Office\Startup folder.
Can anybody shed some light on this issue?! Am I right and is the
add-in loaded prior to the template when we use the commandline
options?!
Please help because we definitely do not want to put the template file
into the Office\Startup folder, because we wanted to use the template
to distribute the new functionality to specific users on our network,
not to all users.
Thanks in advance,
Alke Wiebenga