[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.PageDocument.LocateDataSource

LocateDataSource Event

Occurs when the report needs to locate a data source from the calling application.

Namespace: GrapeCity.ActiveReports.Document
Assembly: MESCIUS.ActiveReports.dll
Syntax
public event LocateDataSourceEventHandler LocateDataSource
Returns
Type Description
LocateDataSourceEventHandler Occurs when the report needs to locate a data source from the calling application.
Examples
PageReport pageReport = new PageReport(reportFilePath);
pageReport.Document.LocateDataSource  += (sender, args) =>
{
	if (args.DataSet.Name == "Catalog")
	{
		DataSet ds = new DataSet();
		ds.ReadXml("XML_Schema_and_Data.xml");
		args.Data = ds.Tables[0];
	}
};
reportPreview.LoadDocument(pageReport.Document);