[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.SectionReport.LocateCredentials

LocateCredentials Event

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

Namespace: GrapeCity.ActiveReports
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
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(reportFilePath);
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.LocateCredentials += (s, args) =>
{
	if (args.Name == "MyDB")
	{
		args.UserName = "guest";
		args.Password = "12345";
	}
};