3

I am producing reports that are comprised of 4 chapters, an introduction chapter and 3 dynamically created chapters. The 3 dynamic chapters are produced separately, and then inserted after the introduction chapter and saved as a single unit. The three dynamic chapters are working fine and look as they should, and other than the missing images the combined version looks as it should as well.

One of the dynamic chapters uses the InsertFile method to bring in 6 images that are saved as RTF files. I can't change the format of the incoming images, and since they are not technically images I have to insert them as text. This does not present an issue when the chapter is by itself, as they appear as they should. However, when the chapters are combined, these images are lost. I am also combining the 4 documents (introduction + 3 dynamic chapters) using the InsertFile method.

So far I've confirmed that if I manually insert the problematic dynamic chapter into a blank document it also loses the images. The chapters are saved to a local drive. I have also confirmed that if I move the chapter file to a network drive, it seems to import fine (however, that's not an option).

Does this problem sound familiar to anyone?

4

1 回答 1

1

运行应用程序的帐户是否具有必要的权限?

我在 Excel Interop 中遇到了类似的情况。罪魁祸首是本地服务帐户没有足够的权限。我将其更改为在本地系统下运行,并且图像仍然存在。

于 2012-03-21T13:36:56.793 回答