using Microsoft.Office.Interop.owc11
using Microsoft.Office.Interop.Word
using Microsoft.Office.Interop.Excel
第一个问题:
看到网上文章操作Word excel 都引入 Interop.Word or Interop.Excel
请问引用了 OWC11 是否可以代替 引入Interop.Word or Interop.Excel ?
第二个问题:
服务器上操作Word Excel 服务器上一定要安装OFFICE 还是只要安装owc 或者在项目中引用DLL?
using Microsoft.Office.Interop.Word
using Microsoft.Office.Interop.Excel
第一个问题:
看到网上文章操作Word excel 都引入 Interop.Word or Interop.Excel
请问引用了 OWC11 是否可以代替 引入Interop.Word or Interop.Excel ?
第二个问题:
服务器上操作Word Excel 服务器上一定要安装OFFICE 还是只要安装owc 或者在项目中引用DLL?
using Microsoft.Office.Interop.owc11
using Microsoft.Office.Interop.Word
using Microsoft.Office.Interop.Excel
是命名空间,两码事
Microsoft.Office.Interop.Excel 引用的是EXCEL.EXE所以我觉得服务器上不装,是不可以用地
第二:在服务端操作office必须安装office.
不知道wps和永中office有没有类似的dll
第一个问题:肯定不可以,必须要添加对应的应用,对应你装的office版本不同,添加的应用也不一样。
第二个问题:先装office,再添加引用,在using...