How to use the WebBrowser control to open Office documents in Visual C# 2005 or in Visual C# .NET (304662)
The information in this article applies to:
- Microsoft Visual C# 2005
- Microsoft Visual C# .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 Q304662
For a Microsoft Visual Basic .NET version of this article, see 304643.
SUMMARY
You may want to display or to embed a Microsoft Office document directly on a Microsoft Visual C# form. Microsoft Visual C# 2005 and Microsoft Visual C# .NET do 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 in a Visual C# 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 how to display it inside a Visual C# 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: | 10/4/2006 |
---|
Keywords: | kbActiveDocs kbAutomation kbhowto kbWebBrowser KB304662 kbAudDeveloper |
---|
|