[英]Office 2007 Web components and Microsoft Office spreadsheet 12.0 usage in Visual Studio C# Windows Application
I'm unable to find Microsoft Office spreadsheet 12.0 COM component/control in Visual studio COM components tab of ToolBox. 我无法在ToolBox的Visual Studio COM组件选项卡中找到Microsoft Office电子表格12.0 COM组件/控件。
And also i couldn't able to use/find 'OWC12.dll' in order to add the same in Toolbox control items. 而且我也无法使用/找到'OWC12.dll'以便在Toolbox控件中添加相同的内容。
Since I'm able to see something called 'owc11.dll' of 'Microsoft Office spreadsheet 11.0' in Toolbox COM components items tab. 因为我能够在Toolbox COM组件项目选项卡中看到“Microsoft Office电子表格11.0”中名为“owc11.dll”的内容。
But i need the latest COM component related to spreadsheet of Office2007 in my Visual Studio 2008 WinApp project. 但我需要在我的Visual Studio 2008 WinApp项目中与Office2007的电子表格相关的最新COM组件。
In case if not available of 12.0 component then please tell me how to add an excel 2007 spreadsheet as a control in Visual Studio2008/2010 Windows Application project. 如果没有12.0组件,那么请告诉我如何在Visual Studio2008 / 2010 Windows应用程序项目中添加excel 2007电子表格作为控件。
Please provide me detailed explanation and process of adding the same with code . 请提供详细说明以及添加相同代码的过程。
-BS -BS
You can add a excel work book to your windows form by using the AxSpreadsheet control. 您可以使用AxSpreadsheet控件将Excel工作簿添加到Windows窗体。 To use this control you need to add a reference of AxInterop.OWC11.dll and Interop.Office.DLL.
要使用此控件,您需要添加AxInterop.OWC11.dll和Interop.Office.DLL的引用。
http://dotnetcodelearner.wordpress.com/2012/12/19/displaying-the-excel-workbook-in-windows-form-using-axspreadsheet/ http://dotnetcodelearner.wordpress.com/2012/12/19/displaying-the-excel-workbook-in-windows-form-using-axspreadsheet/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.