【问题标题】:Office 2007 Web components and Microsoft Office spreadsheet 12.0 usage in Visual Studio C# Windows ApplicationOffice 2007 Web 组件和 Microsoft Office 电子表格 12.0 在 Visual Studio C# Windows 应用程序中的使用
【发布时间】:2011-06-17 02:46:18
【问题描述】:

我在 ToolBox 的 Visual Studio COM 组件选项卡中找不到 Microsoft Office 电子表格 12.0 COM 组件/控件。

而且我也无法使用/找到“OWC12.dll”以便在工具箱控件项中添加相同的内容。

因为我能够在 Toolbox COM 组件项选项卡中看到“Microsoft Office 电子表格 11.0”的“owc11.dll”。

但我需要在我的 Visual Studio 2008 WinApp 项目中与 Office2007 电子表格相关的最新 COM 组件。

如果 12.0 组件不可用,请告诉我如何在 Visual Studio2008/2010 Windows 应用程序项目中添加 excel 2007 电子表格作为控件。

请给我详细的解释和添加代码的过程。

-B.S

【问题讨论】:

    标签: c# office-interop office-2007


    【解决方案1】:

    您可以使用 AxSpreadsheet 控件将 Excel 工作簿添加到 Windows 窗体中。要使用此控件,您需要添加 AxInterop.OWC11.dll 和 Interop.Office.DLL 的引用。

    http://dotnetcodelearner.wordpress.com/2012/12/19/displaying-the-excel-workbook-in-windows-form-using-axspreadsheet/

    【讨论】:

      猜你喜欢
      • 2014-01-15
      • 2011-05-22
      • 1970-01-01
      • 2011-02-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多