DSOFramer limit Word menu items

D

Darren Ingram

Hi

I am currently using the DSOFramer control to allow editing of Word
documents within my Windows VB.net (VS2005, dot net 2.0) application.
Everything's working well, but I am struggling with limiting the items
available from the Word menu.

Specifically I am trying to remove (or at least disable) the 'Unprotect
Document' option from the 'Tools' menu (the document is protected through a
call to .ActiveDocument.Protect on form load). Once this works I can start
to remove/disable some of the other items that the users do not want access
to.

I have been attempting to use code such as:
..ActiveDocument.ActiveWindow.Application.CommandBars("Menu
Bar").Controls("&Tools")
on the framer control to get to the tools menu, after this I'm struggling!

Thanks in advance for any help!
 

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