Office automation (Interop) on Windows Server 2012

前端 未结 3 1903
梦谈多话
梦谈多话 2020-12-03 20:18

I\'m successfully using Office automation on Windows Server 2008 R2 with Office 2007 in order to convert Office documents to PDFs. The code is rather simple:



        
3条回答
  •  眼角桃花
    2020-12-03 21:09

    I'll probably get downvoted for this answer, but I work in an enterprise environment where we have a product that uses Office Automation, and it is very problematic.

    I've done research in this arena, and Microsoft itself recommends against doing Office Automation.

    The following is directly from Microsoft's MSDN knowledge base

    Microsoft does not recommend or support server-side Automation of Office.

    Also

    Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

    Source: http://support.microsoft.com/kb/257757

提交回复
热议问题