MailMergeField.Code 属性 参考 反馈 本文内容 定义 注解 适用于 定义 命名空间: Microsoft.Office.Interop.Word 程序集: Microsoft.Office.Interop.Word.dll 返回一个 Range 对象,该对象表示字段的代码。 C# 复制 public Microsoft.Office.Interop.Word.Range Code { get; set; } 属性值 Range ...
ViewMailMergeFieldCodes 确定合并字段名称是否显示在邮件合并main文档中。 WizardState 返回或设置一个Integer类型的值,指示文档的当前邮件合并向导步骤。 方法 Check() 模拟邮件合并操作,在出错时停止合并操作并报告每个错误。 CreateDataSource(Object, Object, Object, Object, Object, Object, Object, Object, Object...
表达 一个代表“MailMergeField”对象的变量。备注域代码包括用域字符 ({ }) 括起来的所有内容,包括开头和结尾处的空格。 无需更改域结果的显示方式即可访问域代码。示例本示例显示活动文档中每一个域的域代码。VB 复制 Dim fieldLoop As Field For Each fieldLoop In ActiveDocument.Fields MsgBox Chr(34) &...
MailMergeDataField 物件是 MailMergeDataFields 集合的成員。 MailMergeDataFields 集合包含所有合併列印相關文件中的欄位。註解使用欄位 (Index),其中 Index 是索引編號,可以傳回單一 MailMergeField 物件。 下列範例會顯示使用中文件內第一個合併列印功能變數的功能變數代碼。
Merge Fielddialog box, you can replace the invalid field (State) with valid field from the data source (Province), or you can remove the field altogether. If you found a mistake in your data source, you can revise the field name in your data source and re-start the m...
Merge Fielddialog box, you can replace the invalid field (State) with valid field from the data source (Province), or you can remove the field altogether. If you found a mistake in your data source, you can revise the field name in your data source and re-start the m...
This example retrieves the name of the first field and value of the first record of the FirstName field in the data source attached to the active publication. VB複製 SubGetDataFromSource()WithActiveDocument.MailMerge.DataSource MsgBox"Field Name: "& .DataFields.Item(1).Name & _"Value: "&...
If the active document isn't a mail merge main document, this property causes an error. To view merge field names or their results, set theShowFieldCodesproperty toFalse. Example This example displays the mail merge fields in Main.doc. ...
Displaying Currency Amounts in PDF Forms Collecting Data from Multiple PDF Forms into a Spreadsheet Editing Form Field Names with AutoMailMerge Form Tools Using Buttons to Submit PDF Forms via Email Common Use Cases Populating PDF Forms With Images Populating Multiline Text Fields with Multiple Data...
Make sure you add the appropriate symbol before or after a merge field. For example, here's how the currency and percentage values look if you omit symbols. If you include the symbols, the numbers make more sense. In your mail merge document, you add the symbols...