How to hide ribbon in word 2007 program programmaticlly in C++?

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.
 
F

Fred

It is a feature of the Ribbon itself to minimise it if you want to. Each
user can turn that on off
 

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