TX Text Control .NET for Windows Forms

ReportDataSourceConfig Property

Property|Introduced in 20.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies the Report Data Source Configuration as an XML string. Must be in the same form as the content of a Report Data Source Configuration file created by TX Text Control Words.

Syntax

public string ReportDataSourceConfig { get; set; }

Examples

The following example uses MailMerge.ReportDataSourceConfig to configure report data source config as part of the mail merge workflow. The configured value is checked before the workflow continues.

mailMerge.ReportDataSourceConfig = "Quarterly report";
if (!string.IsNullOrWhiteSpace(mailMerge.ReportDataSourceConfig))
{
    Console.WriteLine($"Report Data Source Config: {mailMerge.ReportDataSourceConfig}");
}

See Also

ReportDataSourceConfigFile property.