Exago .NET API Documentation
DataSource Class
Members  Example 
WebReports.Api.Data Namespace : DataSource Class
The DataSource class is used to set or override the data connection string of a pre-existing data source at runtime. It may also be used to add a new Data Source to the configuration.
Syntax
public class DataSource : WebReports.Api.Common.ConfigObj 
Example
A new Microsoft Excel worksbook data source will be added for the current session.
DataSource myNewDataSource = new DataSource();
myNewDataSource.Name = "Weather Data Workbook";
myNewDataSource.DbType = Constants.DatabaseType.File;
myNewDataSource.DataConnStr = "File=D:\\storm_data_search_results.xls;Type=excel;";
api.DataSources.Add(myNewDataSource);
Inheritance Hierarchy

System.Object
      WebReports.Api.Data.DataSource

See Also

Reference

DataSource Members
WebReports.Api.Data Namespace