F
Frenchy
Hi all,
I developed a com add-in using the Extensibility project in VS2003 (C#).
My add-in is a simple commandbar with buttons, combobox,…
My problem is that I’d like to disable (to gray) my add-in when the user is
on reading layout view.
Conversely, when quitting this mode, the add-in must be reactivated.
I looked for an event “ViewChangedâ€â€¦ without successes.
So I had to add events on each buttons relating to the reading layout.
Succeeded, except for one button.
And here’s my first problem: I can’t add a Click event on the button
positioned on the bottom left in Word. It’s the button disposed just on the
left of the horizontal scroll (when you’re in print layout view for ex.).
To be able to add a click event I need to know the name of that commandbar
and the id of the button…Or another way to catch the click on that button…
My second and last problem:
When opening a Word document in Reading Layout view (Exemple; when you’re
opening an attached word document in outlook, It opens in reading layout).
In that case, my commandbar is added and grayed. But when switching to
another view, Word disables my commandbar (makes it invisible).
It’s hard to explain but when I add a commandbar in Reading view, it’s only
set to visible in that mode. So when switching, my commandbar is still in the
list of commandbars but invisible… Any ideas?
I already tried to set my commandbar to visible = true, when quitting the
Reading view. But the event rises before the switching…
Thanks for your help,
François
I developed a com add-in using the Extensibility project in VS2003 (C#).
My add-in is a simple commandbar with buttons, combobox,…
My problem is that I’d like to disable (to gray) my add-in when the user is
on reading layout view.
Conversely, when quitting this mode, the add-in must be reactivated.
I looked for an event “ViewChangedâ€â€¦ without successes.
So I had to add events on each buttons relating to the reading layout.
Succeeded, except for one button.
And here’s my first problem: I can’t add a Click event on the button
positioned on the bottom left in Word. It’s the button disposed just on the
left of the horizontal scroll (when you’re in print layout view for ex.).
To be able to add a click event I need to know the name of that commandbar
and the id of the button…Or another way to catch the click on that button…
My second and last problem:
When opening a Word document in Reading Layout view (Exemple; when you’re
opening an attached word document in outlook, It opens in reading layout).
In that case, my commandbar is added and grayed. But when switching to
another view, Word disables my commandbar (makes it invisible).
It’s hard to explain but when I add a commandbar in Reading view, it’s only
set to visible in that mode. So when switching, my commandbar is still in the
list of commandbars but invisible… Any ideas?
I already tried to set my commandbar to visible = true, when quitting the
Reading view. But the event rises before the switching…
Thanks for your help,
François