Aspose::Words::Settings::Odso class

Odso class

Specifies the Office Data Source Object (ODSO) settings for a mail merge data source. To learn more, visit the Mail Merge and Reporting documentation article.

class Odso : public System::Object

Methods

MethodDescription
Clone()Returns a deep clone of this object.
get_ColumnDelimiter() constSpecifies the character which shall be interpreted as the column delimiter used to separate columns within external data sources. The default value is 0 which means there is no column delimiter defined.
get_DataSource() constSpecifies the location of the external data source to be connected to a document to perform the mail merge. The default value is an empty string.
get_DataSourceType() constSpecifies the type of the external data source to be connected to as part of the ODSO connection information for this mail merge. The default value is Default.
get_FieldMapDatas() constGets a collection of objects that specify how columns from the external data source are mapped to the predefined merge field names in the document. This object is never null.
get_FirstRowContainsColumnNames() constSpecifies that a hosting application shall treat the first row of data in the specified external data source as a header row containing the names of each column in the data source. The default value is false.
get_RecipientDatas() constGets a collection of objects that specify inclusion/exclusion of individual records in the mail merge. This object is never null.
get_TableName() constSpecifies the particular set of data that a source shall be connected to within an external data source. The default value is an empty string.
get_UdlConnectString() constSpecifies the Universal Data Link (UDL) connection string used to connect to an external data source. The default value is an empty string.
GetType() const override
Is(const System::TypeInfo&) const override
Odso()
set_ColumnDelimiter(char16_t)Setter for Aspose::Words::Settings::Odso::get_ColumnDelimiter.
set_DataSource(const System::String&)Specifies the location of the external data source to be connected to a document to perform the mail merge. The default value is an empty string.
set_DataSourceType(Aspose::Words::Settings::OdsoDataSourceType)Setter for Aspose::Words::Settings::Odso::get_DataSourceType.
set_FieldMapDatas(const System::SharedPtr<Aspose::Words::Settings::OdsoFieldMapDataCollection>&)Sets a collection of objects that specify how columns from the external data source are mapped to the predefined merge field names in the document. This object is never null.
set_FirstRowContainsColumnNames(bool)Setter for Aspose::Words::Settings::Odso::get_FirstRowContainsColumnNames.
set_RecipientDatas(const System::SharedPtr<Aspose::Words::Settings::OdsoRecipientDataCollection>&)Sets a collection of objects that specify inclusion/exclusion of individual records in the mail merge. This object is never null.
set_TableName(const System::String&)Specifies the particular set of data that a source shall be connected to within an external data source. The default value is an empty string.
set_UdlConnectString(const System::String&)Specifies the Universal Data Link (UDL) connection string used to connect to an external data source. The default value is an empty string.
static Type()

Remarks

ODSO seems to be the “new” way the newer Microsoft Word versions prefer to use when specifying certain types of data sources for a mail merge document. ODSO probably first appeared in Microsoft Word 2000.

The use of ODSO is poorly documented and the best way to learn how to use the properties of this object is to create a document with a desired data source manually in Microsoft Word and then open that document using Aspose.Words and examine the properties of the MailMergeSettings and Odso objects. This is a good approach to take if you want to learn how to programmatically configure a data source, for example.

You do not normally need to create objects of this class directly because ODSO settings are always available via the Odso property.

See Also