How To Use the WebBrowser Control to Open an Office Document in Visual Basic .NET (304643)
The information in this article applies to:
- Microsoft Visual Basic .NET (2003)
- Microsoft Visual Basic .NET (2002)
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Excel 2000
- Microsoft Office PowerPoint 2003
- Microsoft PowerPoint 2002
- Microsoft PowerPoint 2000
- Microsoft Office Word 2003
- Microsoft Word 2002
- Microsoft Word 2000
This article was previously published under Q304643 For a Microsoft Visual C# .NET version of this
article, see
304662. SUMMARY You may want to display, or embed, an Office document
directly on a Visual Basic .NET Form. Unlike earlier versions of Visual Basic,
Visual Basic .NET does not provide an OLE control that allows you to embed an
Office document on a form. If you want to embed an existing document and open
it as an in-place ActiveX document object within a Visual Basic .NET form, a
potential solution for you is to use the Microsoft WebBrowser control.
This article demonstrates how to browse to an
existing Office document and display it inside a Visual Basic .NET form by
using the WebBrowser control. REFERENCESFor additional
information about using the WebBrowser control, click the article numbers below
to view the articles in the Microsoft Knowledge Base: 304562 INFO: Visual Studio .NET Does Not Provide an OLE Container Control for Win Forms
243058 How To Use the WebBrowser Control to Open an Office Document
162719 How To Use the WebBrowser Control from Visual Basic 5.0
202476 BUG: Cannot Edit Word Document in OLE or WebBrowser Control
188271 How To Print Contents of the Web Browser Control From VB
191692 PRB: Shdocvw.dll Is Not Included in PDW Setup Package
238313 PRB: Accessing the Internet Explorer Document Object Model From Visual Basic
Modification Type: | Minor | Last Reviewed: | 7/15/2004 |
---|
Keywords: | kbActiveDocs kbAutomation kbhowto kbWebBrowser KB304643 kbAudDeveloper |
---|
|