问题描述
您好,
是否有人强调Word中的ContentControl,以便打印文档是不是会强调ContentControl的范围?
Is there a was to emphasize a ContentControl in Word in such a way that the printed document will not have the Ranges of the ContentControl emphasized?
我在范围内尝试了EmphasizedMark,但它显示在打印文档上。
I tried the EmphasizedMark on the Range, but it shows on the printed document.
我正在使用VSTO 3.0 for Word 2007。
I am using VSTO 3.0 for Word 2007.
祝你好运,
Silviu。
推荐答案
没有。在将文档发送到打印机之前,您需要使用某种代码来更改格式。最简单的方法是将段落样式与内容控件相关联,只需更改样式定义(而不是需要循环所有
内容控件并更改格式)。
No. You'd need to use some kind of code to change the formatting before sending the document to the printer. Simplest would be to have a paragraph style linked with the content control and simply change the style definition (rather than needing to loop all content controls and change the formatting).
这篇关于强调ContentControl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!