How to embed Excel in a .NET WinForms App
2013-09-28 17:37
459 查看
Download and install owc11.
Run AxImp on OWC11.dll, which will have been installed in the microsoft shared\web components directory (ie C:\Program Files\Common Files\microsoft shared\Web Components\11\). AxImp.exe can be found in the Windows SDK (ie, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\AxImp.exe).
In Visual Studio project, drag OWC11.dll to a toolbox tab and drop the Excel component on form.
Voila. When it comes deployment time, you’ll need the AxInterop.OWC11.dll.
Run AxImp on OWC11.dll, which will have been installed in the microsoft shared\web components directory (ie C:\Program Files\Common Files\microsoft shared\Web Components\11\). AxImp.exe can be found in the Windows SDK (ie, C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\AxImp.exe).
In Visual Studio project, drag OWC11.dll to a toolbox tab and drop the Excel component on form.
Voila. When it comes deployment time, you’ll need the AxInterop.OWC11.dll.
相关文章推荐
- How To Use ADO.NET to Retrieve and Modify Records in an Excel Workbook With Visual Basic .NET(利用Ado.net导出到Excel)
- 【原创】如何让SharePoint2010的内联代码支持.Net framework 3.5[How to embed inline code in aspx with .net framework 3.5 syntax]
- How to create aligned partitions in Linux for use with NetApp LUNs, VMDKs, VHDs and other virtual di
- How to get Intellisense for Web.config and App.config in Visual Studio .NET?(转载)
- How to debug a Private Module Assembly in DotNetNuke?
- 海洋工作室——网站建设专家:ASP.NET: How to Convert Your Site To A MasterPage Site in 3 Steps
- how to call Web service in Excel 2003 / Excel 2005
- [转载]How to hide the OK button in the dialog in .Net Compact Framework application?
- How to use user’s location in your app?
- how to change the original ruby version in Rails app
- How to debug Control Panel applet (cpl) in VS .NET 2005
- How to troubleshoot 'Procedure or function has too many arguments specified' in asp.net 2.0
- How to check the usage of net ports in linux?
- How to Find a Blank Cell in Excel Using Vba
- How To Use the ODBC .NET Managed Provider in Visual C# .NET and Connection Strings
- How to check memory leaks in android app?
- FW: How to spawn a process that runs under the context of the impersonated user in Microsoft ASP.NET pages
- How to Confirm a Delete in an ASP.NET Datagrid...
- Exporting to Excel in Crystal Reports .NET - Perfect Excel Exports
- How to clear a TextBox value in a single click in C# .NET