如何使用C#在Word中配置Mergefield属性 [英] How Do I Configure A Mergefield Propertie In Word Using C#

查看:587
本文介绍了如何使用C#在Word中配置Mergefield属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用c#

配置word中的mergefield属性示例:

更新字段值后:

field。 result.text = MyValue;

我想把它变成螺栓或下划线。

如何做到这一点?如何访问属性?

以及如何访问该字段的一部分?

例如,我的客户希望看到如下内容:

大师 ,税务专业化,经济和金融



谢谢

d a v id

解决方案

您需要使用Microsoft.Office.Interop.Word名称空间 [ ^ ]。

how do I configure a mergefield property in word using c#
example:
after I update the field value by:
field.result.text = MyValue;
I want to make it bolt, or underscore.
how to do that? how to access the properties ?
and how to access a portion of that field?
example, My client wants to see something like this:
Master in Low, Tax specialization, economy and financial

thanks
david

解决方案

You need to use the Microsoft.Office.Interop.Word namespace[^].


这篇关于如何使用C#在Word中配置Mergefield属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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