Office automation (Interop) on Windows Server 2012

前端 未结 3 1902
梦谈多话
梦谈多话 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:02

    The only solution found is to make the process that invokes Office API to run as interactive. It can be done by just running a console app (not the brightest idea for server solutions) or by creating some background service (e.g., windows service) and set it's station (SetProcessWindowStation).

提交回复
热议问题