简体   繁体   English

Office 2007 Web组件和Microsoft Office电子表格12.0在Visual Studio C#Windows应用程序中的使用

[英]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.

相关问题 Visual Studio C#Office2007表单样式不起作用 - Visual Studio C# Office2007 Form Style not working 使用Visual Studio的Office Develeper工具在C#中打开Word文件(microsoft.office.tools.word) - Opening a Word file in C# with Office Develeper Tools for Visual Studio(microsoft.office.tools.word) 在C#Winforms中查看Microsoft Office 2007/2010文件 - Viewing Microsoft Office 2007/2010 files in C# winforms 在 Microsoft Visual Studio Tools for Office (VSTO) 3 (C#) 中传递参数的最佳实践 - Best practice for passing parameters in Microsoft Visual Studio Tools for Office (VSTO) 3 (C#) 使用Microsoft.Office.Interop.Word 2016/365编码和2010生产的Visual Studio 2017 C#项目 - Visual Studio 2017 C# project with Microsoft.Office.Interop.Word 2016/365 coded and 2010 production Office 2007的Microsoft.Office.Interop.Excel - Microsoft.Office.Interop.Excel for Office 2007 Visual Studio 2008 Office Interop 2003与2007 - Visual Studio 2008 Office Interop 2003 vs 2007 没有Open Office SDK和Microsoft Office Interop的C#PowerPoint - C# PowerPoint without Open Office SDK and Microsoft Office Interop Microsoft Office Interop Excel在Windows 2008 64bit和Office 2007 32bit上无法关闭 - Microsoft Office Interop Excel is not closing on windows 2008 64bit and office 2007 32bit C#:如何知道是否安装了某些Office 2003或2007应用程序? - C#: How to know whether certain Office 2003 or 2007 application is installed?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM