K
KeithM
Hi,
We have a COM AddIn written in .NET 1.1, C# and running on XP with Office
2003 (Version 11.0) that works with Word, Excel and Powerpoint.
The add in stores some data for each document in the metadata and displays
this in a custom
toolbar when documents are loaded.
The problem is with Word.
There is code within the AddIn to prevent end users being able to switch off
or move the toolbar around.
This code ensures that if the user were to go "View->Toolbars", our addin
would not be visible. in the list of toolbars. This all works ok usually.
However, if I click on a hyperlink to a word document from within Internet
Explorer, when Word loads the document, my toolbar is not visible and if I
go to "View->Toolbars" our add in name is now visible and it is then
possible to turn it on.
What I really have to have is for Word to load up the document and our
toolbar when launched from IE, otherwise the user can circumvent auditing we
do based on the contents of the toolbar.
I have tried deleting normal.dot for the user before launching but this does
not work.
It seems that Word might be making changes in the registry in the following
path:
HKCU\Microsoft\Office\11.0\Word\Data, in particular the 'toolbars' and
'settings' values. I cannot find any documentation on this however.
I have tried programmatically setting the toolbars 'Visible' property to
'true' in the "OnStartupComplete" handler, to no avail.
It is as though something else is happening after I have recieved the Word
connection events that is overwriting my settings when launched from IE.
If anyone can give me guidance on what I need to do to get Word working
correctly I would be exremely grateful as I have been scratching my head for
3 weeks now.
Thanks.
We have a COM AddIn written in .NET 1.1, C# and running on XP with Office
2003 (Version 11.0) that works with Word, Excel and Powerpoint.
The add in stores some data for each document in the metadata and displays
this in a custom
toolbar when documents are loaded.
The problem is with Word.
There is code within the AddIn to prevent end users being able to switch off
or move the toolbar around.
This code ensures that if the user were to go "View->Toolbars", our addin
would not be visible. in the list of toolbars. This all works ok usually.
However, if I click on a hyperlink to a word document from within Internet
Explorer, when Word loads the document, my toolbar is not visible and if I
go to "View->Toolbars" our add in name is now visible and it is then
possible to turn it on.
What I really have to have is for Word to load up the document and our
toolbar when launched from IE, otherwise the user can circumvent auditing we
do based on the contents of the toolbar.
I have tried deleting normal.dot for the user before launching but this does
not work.
It seems that Word might be making changes in the registry in the following
path:
HKCU\Microsoft\Office\11.0\Word\Data, in particular the 'toolbars' and
'settings' values. I cannot find any documentation on this however.
I have tried programmatically setting the toolbars 'Visible' property to
'true' in the "OnStartupComplete" handler, to no avail.
It is as though something else is happening after I have recieved the Word
connection events that is overwriting my settings when launched from IE.
If anyone can give me guidance on what I need to do to get Word working
correctly I would be exremely grateful as I have been scratching my head for
3 weeks now.
Thanks.