【问题标题】:Word 2007 Automation - Images show up as black boxes when printedWord 2007 自动化 - 打印时图像显示为黑框
【发布时间】:2011-01-18 16:23:30
【问题描述】:

当我使用 Word 2007 Interop 进行打印时,它不会显示打印副本中的图像。它只显示占位符的黑框。但是,当它从 Word 手动打印时(没有 Interop)就可以了。

如果某些图形未打印(或未在打印预览中显示), 转到办公室按钮 |单词选项 |显示:打印选项和制作 确保“打印在 Word”被选中。

我试过设置

Options.PrintDrawingObject = true;

但是没有效果。有什么想法吗?

【问题讨论】:

  • 您是否尝试过设置“打印背景颜色和图像”等其他选项?您是否也尝试过使用旧版本的 Word (Word 2003)?

标签: c# image printing interop ms-word


【解决方案1】:

事实证明,word 2007 中似乎存在导致此问题的错误。这是由于保存时图像的链接方式。

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

我还没有想出在互操作中执行此操作的方法(我认为有一种方法可以自动化热键,但感觉就像是 hack)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多