WebBrowser

  • Thread starter Thread starter Newton Godoy
  • Start date Start date
N

Newton Godoy

Hi all,

I'm using a webbrowser in a windows form and I would like to display word
and excel documents without allowing the document to be edited by the user.
The navigate method seems not to provide any way to load a document as
read-only.

If you know how to do this, please let me know.

Thanks.

PS: This is a new thead!!!!!!
 
Newton,

There goes definitly something wrong to make a new message you have really
to open a new message not just change the subject.

However you tried, so try this

\\\You have to set a reference to microsoft.mshtm, however do not set it in
the import
Private Sub AxWebBrowser1_NavigateComplete2(ByVal sender As System.Object,
ByVal e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event) Handles
AxWebBrowser1.NavigateComplete2
Try
oDocument = DirectCast(DirectCast(e.pDisp, SHDocVw.WebBrowser).Document,
mshtml.IHTMLDocument2)
DirectCast(DirectCast(e.pDisp, SHDocVw.WebBrowser).Document,
mshtml.IHTMLDocument2).designMode = "Off"
Catch
messagebox.show("someting went wrong browsing")
End Try
End Sub
///
 
Actually the MS NNTP Server will automatically thread messages with the same subject together, so
its not his fault, except that he chose the subject "WebBrowser"
 

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

Back
Top