K
Kaven
Hi all,
Does anybody know how to hide ribbon or menu bar in word 2007 using C++?(or
VBA).
I have a requirement that when using CHtmlView in MFC to open office
document, the ribbon or menu,toolbar must be hide to increase the viewing
area. for word 2003, the following code works well:
Dim iCounter As Integer
For iCounter = 1 To CommandBars.Count
Application.CommandBars(iCounter).Enabled = False
Next
But in word 2007,it don't work. Should notice that when drag and drop a word
document into IE for opening, there is no ribbon. But why I use CHtmlView or
IWebBrower2 to navigate a word document, the ribbon area exist?
Thank you for your help.
Does anybody know how to hide ribbon or menu bar in word 2007 using C++?(or
VBA).
I have a requirement that when using CHtmlView in MFC to open office
document, the ribbon or menu,toolbar must be hide to increase the viewing
area. for word 2003, the following code works well:
Dim iCounter As Integer
For iCounter = 1 To CommandBars.Count
Application.CommandBars(iCounter).Enabled = False
Next
But in word 2007,it don't work. Should notice that when drag and drop a word
document into IE for opening, there is no ribbon. But why I use CHtmlView or
IWebBrower2 to navigate a word document, the ribbon area exist?
Thank you for your help.