Supertension
New member
- Local time
- Today, 23:45
- Joined
- Dec 16, 2015
- Messages
- 13
Hi,
I've have put a Microsoft Active X Web Browser control into an Access form and use the following code when the form loads:
Private Sub Form_Load()
MyPlace = "C:\test.pdf"
Me.WebBrowser0.Navigate MyPlace
End Sub
This works well and the pdf file is displaced in the control.
It also works well when I change MyPlace to jpg file or a web page.
What I also want to do is display a Word document within the browser but when I change MyPlace to "C:\test.docx", I get a message asking whether I want to open or save the Word file. I click 'open' and Word itself opens outside of the browser control and opens the file. A message in the control tells me navigation was cancelled.
Can anyone help me to display the Word document within the browser control? I really need to be able to do this as part of the development of a larger project.
Thanks
I've have put a Microsoft Active X Web Browser control into an Access form and use the following code when the form loads:
Private Sub Form_Load()
MyPlace = "C:\test.pdf"
Me.WebBrowser0.Navigate MyPlace
End Sub
This works well and the pdf file is displaced in the control.
It also works well when I change MyPlace to jpg file or a web page.
What I also want to do is display a Word document within the browser but when I change MyPlace to "C:\test.docx", I get a message asking whether I want to open or save the Word file. I click 'open' and Word itself opens outside of the browser control and opens the file. A message in the control tells me navigation was cancelled.
Can anyone help me to display the Word document within the browser control? I really need to be able to do this as part of the development of a larger project.
Thanks