Why would the Excel Interop remove an image after processing a file?

前端 未结 5 1962
南笙
南笙 2020-12-11 20:53

Excel Interop is removing images from processed files.

I’m using the Excel Interop, no third-party components are present (that I\'m aware of). The workflow is -- cr

5条回答
  •  既然无缘
    2020-12-11 21:03

    You're probably on your own, since Excel isn't supported in a server environment as @Yahia correctly points out.

    Your mention of ActiveX controls is a red flag - maybe some of your ActiveX controls require Excel to run under an account with a profile?

    All you can do is debug this yourself, probably best to proceed by eliminating the possible sources of different behaviour in your dev and production environments.

    • Try using the same Office version in both environments
    • Are you using Cassini in your dev environment? (i.e. running under your own login) If so, perhaps try with IIS running under a service account with no profile
    • Try removing the ActiveX components one by one to see if one of those is having an impact ... etc ...

提交回复
热议问题