开发者

Word 2007 Automation - Images show up as black boxes when printed

When I use the Word 2007 Interop to print it does not show the images in the printed copy. It just shows black boxes for placeholders. However, when it is printed manually from Word (without the Interop) it is fine.

If some graphics are not printing (or not displaying in Print Preview), go to Office Button | Word Options | Display: Printing options and make sure that “Print drawings c开发者_高级运维reated in Word” is checked.

I tried setting

Options.PrintDrawingObject = true;

but there was no effect. Any ideas?


It turns out that there seems to be a bug in word 2007 that causes this issue. It is due to the way images are linked when saved.

Select all (CTRL + A)
Click on the Office Icon (circular icon in top left corner)
Go to prepare
Click on "edit links to files"
Check the "save picture in document" box
Click ok
Save

I have not figured out a way to do this in the interop (I think there is a way to automate the hotkeys, but that feels like a hack).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜