MailMergeDataSource.RecordCount Property
Returns an Integer that represents the number of records in the data source.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim mailMergeDataSource1 As MailMergeDataSource
Dim returnValue As Integer
returnValue = mailMergeDataSource1.RecordCount
Syntax
ReadOnly Property RecordCount() As Integer
int RecordCount {get;}
property Int32 RecordCount{
Int32 get();
}
public int get_RecordCount();
function get RecordCount() : int;
Remarks
If Microsoft Word cannot determine the number of records in a data source, the RecordCount property will return a value of -1.
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
MailMergeDataSource Interface
Microsoft.Office.Interop.Word Namespace