Embed Word in Windows form: what about the menu bar?

M

Mirco

I can embed MS Word in my Windows form (either in the WebBrowser or in
the DsoFrame ActiveX), I can show/hide toolbars with the ExecWB
statement but I ABSOLUTELY CANNOT show Word's menu bar!

The following property is true (!):

oDocument.Application.CommandBars["Menu bar"].Visible;

Moreover, even if the menu bar doesn't show up when Word is embedded,
if I try and float it with this code

oDocument.Application.CommandBars["Menu bar"].Position =
Microsoft.Office.Core.MsoBarPosition.msoBarFloating;

it will be floating when I run Word as a stand-alone application!

Is there someone who can help me with this? I hope it is possible in
some way, that is driving me crazy!

Thanks a lot
Mirco
 

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