Microsoft Office Excel互操作使用,复制到本地模式

本文关键字:复制 模式 Office Excel 互操作 Microsoft | 更新日期: 2023-09-27 17:57:27

我们计划使用Microsoft。办公室Interop。windows服务应用程序中的Excel dll,用于创建Excel报告。

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

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

请确认。

Microsoft Office Excel互操作使用,复制到本地模式

根据我的经验,您ll 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. There没有许可证问题,因为用户必须购买许可证才能安装Microsoft Office。