MailMerge.ViewMailMergeFieldCodes Property
Determines if merge field names are displayed in a mail merge main document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim mailMerge1 As MailMerge
Dim returnValue As Integer
returnValue = mailMerge1.ViewMailMergeFieldCodes
Dim sampleValue As Integer
mailMerge1.ViewMailMergeFieldCodes = sampleValue
Syntax
Property ViewMailMergeFieldCodes() As Integer
int ViewMailMergeFieldCodes {get; set;}
property Int32 ViewMailMergeFieldCodes{
Int32 get();
Void set(Int32);
}
public int get_ViewMailMergeFieldCodes();
public void set_ViewMailMergeFieldCodes(int);
function get ViewMailMergeFieldCodes() : int;
function set ViewMailMergeFieldCodes(int);
Remarks
This property returns True if merge field names are displayed in a mail merge main document, and False if information from the current data record is displayed.
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 the ShowFieldCodes property to False.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
MailMerge Interface
Microsoft.Office.Interop.Word Namespace