INFO: Visual Studio .NET Does Not Provide an OLE Container Control for Win Forms (304562)



The information in this article applies to:

  • Microsoft Visual Basic .NET (2002)
  • Microsoft Visual C# .NET (2002)
  • Microsoft Visual C# .NET (2003)
  • Microsoft Visual J# .NET (2002)
  • Microsoft Visual J# .NET (2003)
  • Microsoft Visual Basic .NET (2003)

This article was previously published under Q304562

SUMMARY

Microsoft Visual Basic versions 5.0 and 6.0 provide an OLE container control for embedding OLE objects directly on your forms. The OLE container provides a means for embedding OLE objects such as Microsoft Excel workbooks, Microsoft PowerPoint presentations, and Microsoft Word documents.

A similar OLE container control is not available for Win Forms with Visual Basic .NET or Visual C# .NET.

MORE INFORMATION

You can achieve similiar functionality by using the Microsoft WebBrowser control to host your document if it is an ActiveX document. Excel, PowerPoint, and Word are all ActiveX document servers, so documents from those sources may be displayed with the WebBrowser control.

REFERENCES

For additional information and sample code that demonstrates how to use Office documents with the WebBrowser control, click the article numbers below to view the articles in the Microsoft Knowledge Base:

304662 HOWTO: Use the WebBrowser Control to Open Office Documents with Visual C# .NET

304643 HOWTO: Use the WebBrowser Control to Open Office Documents in Visual Basic .NET


Modification Type:MajorLast Reviewed:12/15/2003
Keywords:kbinfo KB304562