OfficeDataSourceObject Interface

Definition

Represents the mail merge data source in a mail merge operation.

public interface class OfficeDataSourceObject
[System.Runtime.InteropServices.Guid("000C1530-0000-0000-C000-000000000046")]
public interface OfficeDataSourceObject
[<System.Runtime.InteropServices.Guid("000C1530-0000-0000-C000-000000000046")>]
type OfficeDataSourceObject = interface
Public Interface OfficeDataSourceObject
Attributes

Remarks

To work with the OfficeDataSourceObject object, dimension a variable as an OfficeDataSourceObject object. You can then work with the different properties and methods associated with the object.

Use the SetSortOrder(String, Boolean, String, Boolean, String, Boolean) method to specify how to sort the records in a data source. Use the Column, Comparison, CompareTo, and Conjunction properties to return or set the data source query criterion.

Properties

Columns

Returns an ODSOColumns object that represents the fields in a data source.

ConnectString

Returns or sets a String that represents the connection to the specified mail merge data source.

DataSource

Returns or sets a String that represents the name of the attached data source.

Filters

Returns a FileDialogFilters collection.

RowCount

Returns an Integer that represents the number of records in the specified data source.

Table

Returns a String that represents the name of the table within the data source file that contains the mail merge records.

Methods

ApplyFilter()

Applies a filter to a mail merge data source to filter specified records meeting specified criteria.

Move(MsoMoveRow, Int32)

Moves the focus to a specified row in a mail merge data source.

Open(String, String, String, Int32, Int32)

Opens a connection to a mail merge data source.

SetSortOrder(String, Boolean, String, Boolean, String, Boolean)

Sets the sort order for mail merge data.

Applies to