Office Interop with 64bit Windows in ASP.NET

前端 未结 5 1764
广开言路
广开言路 2020-12-17 08:11

I\'m trying to do office 2003 interop using C# ASP.NET on a server running Windows 2003 64 bit (I\'m running IIS in 32bit mode though) and getting error messages like:

5条回答
  •  鱼传尺愫
    2020-12-17 08:33

    Like John Saunders says, licensing issues aside you just won't get Office automation working properly server-side.

    Check out the OpenXML SDK, which you might be able to leverage to achieve the same end result. DocumentReflector in particular will help you with this.

    http://blogs.msdn.com/alspeirs/archive/2008/12/09/generating-documents-with-c-open-xml-and-the-document-reflector.aspx

    http://www.microsoft.com/downloads/details.aspx?FamilyID=c6e744e5-36e9-45f5-8d8c-331df206e0d0&DisplayLang=en

提交回复
热议问题