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!
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!