Removing the document view icons from bottom left of Word document

G

Guest

Hi,

I have this Word add-in that interacts with the User (i.e.) expects the user
to select some text etc... and also during the entire duration of the
execution of the add-in code, the add-in expects the document to be in the
print view. To ensure this, once the add-in button is clicked, the add-in
sets the view to the print view and then executes (I am also switching off
and on the toolbars here). But in the middle of the execution, if the user
changes the view using the icons appearing in the bottom left to normal or
even worse, reading layout, the add-in would fail. Moreover since I have
switched off my toolbars, if the user switches to reading layout, the users
have no way of returning to the print view. Moreover it would be extra load
on my add-in if it needs to check at every point if the view is print view
and if not reset it back. Is there any way around this?? Can I not show
these icons to the user or can I suppress the changing of document views
programmatically?? Thanks in advance.

Thanks and Regards,
Laks
 
D

Doug Robbins

You can trap an attemp to change to the normal view by having a macro with
the name ViewNormal() that does nothing. That macro will then run in place
of the view switching to Normal. Unfortunately, when the Reading Layout was
added to Word, that command was not exposed so I don't know how to trap
that.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top