Page Orientation in Word 2007

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

Page Orientation in Word 2007
Intercept event on change page orientation 
Tailor Piuco


Guest


Is there a way to intercept the page orientation event (landscape | portrait) of PageOrientationGallery control in Page Layout Tab?
I added programmatically a header and footer message on pages, aligned at right in the page and my problem is when the page orientation changes, the messages are not aligned to the right of page.

Is there a way to solve this?
Posted 09 Nov, 2016 11:52:03 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Tailor,

You cannot intercept clicking a gallery.

I suggest that you handle the CommandBars.OnUpdate event. In Add-in Express, this event is mapped to the CommandBarsUpdate event of the Word Events component. In the event handler, you compare the current and previous values of the PageSetup.Orientation property. Note that this event may fire really often and your code should be effective.


Andrei Smolin
Add-in Express Team Leader
Posted 10 Nov, 2016 04:51:20 Top
Tailor Piuco


Guest


Hi Andrei.

I implemented a handle in CommandBars.OnUpdate event and my problem was solved.

Thanks for your reply.
Posted 10 Nov, 2016 10:35:37 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
You are welcome!


Andrei Smolin
Add-in Express Team Leader
Posted 11 Nov, 2016 01:07:32 Top