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.
"Pengyu Hong" <hong@stat.harv ard.edu> wrote in message
news:eSONbR3jDH A.3612@TK2MSFTN GP11.phx.gbl...[color=blue]
> How to host Word in my program? I also need to selectively show the[/color]
toolbars[color=blue]
> of Word.
>
> Thanks a lot,
>
> Pengyu
>
>[/color]
"Robert Jacobson" <rjacobson_at_o ddpost_com@nosp am.com> wrote in message
news:eu2Lke3jDH A.1656@tk2msftn gp13.phx.gbl...[color=blue]
> 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[/color]
menus[color=blue]
> and toolbars, but not every one, as far as I know.
>
> Your other option is to redesign your application as an add-in for[/color]
Microsoft[color=blue]
> Word, so Microsoft Word is hosting your application.
>[/color]
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(perhap s 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.[color=blue]
>
>
> "Pengyu Hong" <hong@stat.harv ard.edu> wrote in message
> news:eSONbR3jDH A.3612@TK2MSFTN GP11.phx.gbl...[color=green]
> > How to host Word in my program? I also need to selectively show the[/color]
> toolbars[color=green]
> > of Word.
> >
> > Thanks a lot,
> >
> > Pengyu
> >
> >[/color]
>
>[/color]
Comment