Multiple Word Documents open at once.

Add-in Express™ Support Service
That's what is more important than anything else

Multiple Word Documents open at once.
How to handle toolbar object properties for an individual document. 
James Turner




Posts: 2
Joined: 2006-04-05
I have Office 2000.

I'm trying to create a toolbar in Word that displays document properties and selections that are specific to the document in the same window. However, when I open more than one document the toolbar and toolbar object properties seem to be global. Is there a way to change the properties of a toolbar object for only a specific document window?

Example:
I create a simple addin with one toolbar and one button.
On the Button Click event I reverse the button state from either up to down or down to up.

I register and compile the project.
I open two documents and set them side-by-side. (Left document and right document)
If I click the button on the left document, thus setting the state to the down position, and type some text into the left document to refresh the screen. The right document button is set to the down position as well.

Any help would be great.
Posted 05 Apr, 2006 17:35:01 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi James,

Is there a way to change the properties of a toolbar object for only a specific document window?

Yes, there is such a way but it has some limitations. Please contact me directly by email, I will give you a sample of code and necessary explanations.


Posted 06 Apr, 2006 09:04:21 Top