Hi Craig,
I was trying the similar thing last week and i wasn't able to open the word
document in the browser window....
The word document opens outside the browser.
can you please send me the code snippet on how i can open the word doc in
the browser?
Thanks
Kris
<craigeandrews@gmail.com> wrote in message
news:1183105475.041175.266490@c77g2000hse.googlegroups.com...
> Hi,
>
> I've been trying to find a way to host a 'view' of a Word document in
> a Windows Forms app. Ideally I'd like it to be just the document; no
> controls or toolbars, and certainly no editing functionality. It seems
> that the recommended way is to us the WebBrowser control, and to be
> able to access the document once opened, the AxWebBrowser control.
>
> I have the document opening in the web browser control using the
> Navigate method and a handler on the NavigateComplete2 event. Getting
> the Word document is simple enough, and removing unwanted UI elements
> such as toolbars and rules is also easy. However, I can't figure out
> how to force the web browser control to open the document read only.
> It seems that in the Word object model, the read only flag is a
> parameter to the Application.Documents.Open() method, which I never
> call thanks to the Navigate interface of the web browser.
>
> Is there a way to force the document to be read only? I thought about
> using the document properties, to no avail.
>
> A secondary query I have is that I can't figure out how to remove the
> view selection buttons from the horizontal scrollbar without removing
> the entire scrollbar. I'd like the view locked to the Print View, and
> don't want the user changing.
>
> Any help would be greatly appreciated.
>
> Thanks,
>
> Craig
>