【问题标题】:Microsoft Office Excel Interop Usage, Copy to local modeMicrosoft Office Excel 互操作使用,复制到本地模式
【发布时间】:2014-04-08 12:09:49
【问题描述】:

我们计划在 Windows 服务应用程序中使用 Microsoft.Office.Interop.Excel dll 来创建 Excel 报告。

dll 的属性设置为“复制到本地”和“将互操作类型嵌入为 false”。这样可以确保将 dll 放置在创建二进制文件的 bin 文件夹中。

但是,我的问题是我们是否可以在应用程序中使用“复制到本地”模式。由于 dll 是 Microsoft Office 的一部分,它会违反任何 Microsoft 许可证吗?

请确认。

【问题讨论】:

  • 这个问题似乎跑题了,因为它与编程本身无关
  • 确认一下,这个问题与编程有关,对许可证有影响。
  • 您可以尝试,但如果您的机器/服务器上没有有效的 Excel 副本,这将不起作用
  • 据我所知,使用这个 dll 没有问题,因为它基本上只是一个 COM 代理。 Office 许可证由最终用户计算机上的 Excel 实例“支付”。
  • 感谢您的澄清。

标签: c# .net excel office-interop


【解决方案1】:

根据我的经验,youll need Microsoft Office installed on the target computer to use the Interop. The Interop creates an Excel ActiveX object. That ActiveX object is not part of the Interop, but part of Microsoft Office. Theres 没有许可证问题,因为用户必须购买许可证才能安装 Microsoft Office。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-23
    • 2013-06-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多