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

前端 未结 5 1970
南笙
南笙 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:06

    (a) Not supported, don't do it https://support.microsoft.com/en-gb/kb/257757

    (b) Anyway, if you have to do it (and cannot give desktop access to your process, as suggested in the accepted answer), you can mess with the contents and permissions in C:\Windows\System32\config\systemprofile, as suggested by this answer.

    I had to create and allow permissions to the Desktop and to the INetCache folders. Checking (and solving) failed access attempts in paths beginning with C:\Windows\System32\config\systemprofile with the help of Process Monitor was what got me out of the annoying problem and pointed out at INetCache permissions as the reason of the failed insertion of images.

    You just have to add permisions to C:\Windows\SysWOW64\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache or C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache(depends on your system version) folder and images will shown

提交回复
热议问题