TXTextControl.DocumentServer.DataSources.DataSourceManager.SaveDataSourceConfig Method

Saves an XML string or a file containing "report data source config" data. Can only be called when a data provider based data source was loaded via the DatabaseConnectionDialog. The XML string contains information about the data provider, the connection string, the selected master table and existing data relations. Data Source Configuration Files can only be used in Windows Forms applications. When calling this method from a WPF Application, an exception is thrown.

SaveDataSourceConfig()

Shows the system's default save file dialog where a file name and location can be selected.

[C#]
public void SaveDataSourceConfig();
[Visual Basic]
Public Sub SaveDataSourceConfig()

SaveDataSourceConfig(Object)

Shows the system's default save file dialog where a file name and location can be selected.

[C#]
public void SaveDataSourceConfig(object owner);
[Visual Basic]
Public Sub SaveDataSourceConfig(owner As Object)
Parameter Description
owner

An object that represents the top-level window that will own the modal dialog box.

SaveDataSourceConfig(String)

Saves the configuration data into a given string.

[C#]
public void SaveDataSourceConfig(out string configData);
[Visual Basic]
Public Sub SaveDataSourceConfig(ByRef configData As String)
Parameter Description
configData

A string into which the config file content will be written when the method is called.

See Also