Host Win Word

  • Thread starter Thread starter Pengyu Hong
  • Start date Start date
P

Pengyu Hong

How to host Word in my program? I also need to selectively show the toolbars
of Word.

Thanks a lot,

Pengyu
 
You can't do that directly. One option is to use an ActiveX Web Browser
control that shows a Microsoft Word document. You'll get some of the menus
and toolbars, but not every one, as far as I know.

Your other option is to redesign your application as an add-in for Microsoft
Word, so Microsoft Word is hosting your application.
 
Robert Jacobson said:
You can't do that directly. One option is to use an ActiveX Web Browser
control that shows a Microsoft Word document. You'll get some of the menus
and toolbars, but not every one, as far as I know.

Your other option is to redesign your application as an add-in for Microsoft
Word, so Microsoft Word is hosting your application.
Well, you can host it directly IF you want to do all the work required. It
requires implementing a full Active Document host, which requires manually
converting the interfaces, etc. Using IE should work ok, though I don't know
how to control the visible toolbars(perhaps the Word UI itself handles
that).
The visual studio roadmap promises a managed Active Document host for the
2.0 framework, I believe, but that is irrelavent at this moment.
 
Back
Top