[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.PageDocument.LocateCredentials

LocateCredentials Event

Occurs when the report needs to obtain data source credentials from the calling application.

Namespace: GrapeCity.ActiveReports.Document
Assembly: MESCIUS.ActiveReports.dll
Syntax
public event LocateCredentialsEventHandler LocateCredentials
Returns
Type Description
LocateCredentialsEventHandler Occurs when the report needs to obtain data source credentials from the calling application.
Examples
PageReport pageReport = new PageReport(reportFilePath);
pageReport.Document.LocateCredentials += (sender, args) =>
{
	if (args.DataSource.Name == "TestDB")
	{
		args.UserName = "qatester";
		args.Password = "qatesting";
	}
};