本机XP,OFFICE2000
引用using Microsoft.Office.Interop.Owc11;没问题
服务器上2003,OFFICE2000
引用using Microsoft.Office.Interop.Owc11;有问题The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
引用using Microsoft.Office.Interop.Owc11;没问题
服务器上2003,OFFICE2000
引用using Microsoft.Office.Interop.Owc11;有问题The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
再加入命名空間 using OWC11=Microsoft.Office.Interop.Owc11;
注:本文只谈论OWC使用中的技术问题,不涉及OWC引用,授权,版本等方面。文中给出的示例代码基于OWC11 + VS.NET + C#。
http://www.soAsp.net/FilePage/200803/20080315133800.aspx