纯文本使用自定义XML部件时,内容控件会丢失字体格式 [英] Plain text Content control loses font formatting when using custom XML parts

查看:57
本文介绍了纯文本使用自定义XML部件时,内容控件会丢失字体格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用word 2007与纯文本内容控件使用样式/字体,如3 of 9,Agency FB等。使用"ActiveDocument.CustomXMLParts.Add"添加自定义XML部分。和映射使用"ActiveDocument.ContentControls.XMLMapping.SetMapping"。
内容控制文本被提供的文本替换,使用的字体是"Times new roman"。这不是选定的字体。更新内容控件时,占位符文本字体不是我选择的。

I am using word 2007 with plain text content control using style/font like 3 of 9, Agency FB, etc. Adding the custom XML parts using "ActiveDocument.CustomXMLParts.Add" and mapping using "ActiveDocument.ContentControls.XMLMapping.SetMapping". The content control text is replaced by the provided text and the font used is "Times new roman" which is not the selected font. The placeholder text font is not as I selected when the content control is updated.

当我使用直接字体或样式时,它有同样的问题。任何人都可以建议吗?

It has same issue when I am using direct font or style. Can anyone please suggest?

问候

P

推荐答案


jain_p99,

你能发布你的代码吗?

我们将尝试在我们这边测试它并尝试提供解决问题的建议。

we will try to test it on our side and try to provide a suggestion to solve your issue.

您是否尝试设置内容控件的字体?如果它默认不保持字体,它会帮助你。

did you try to set the font of content control? did it help you if it by default does not maintain the font.

问候

Deepak 

Deepak 

这篇关于纯文本使用自定义XML部件时,内容控件会丢失字体格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆