[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReport.Load

Load Method

Load(FileInfo)

Loads the report definition file.

Declaration
public void Load(FileInfo reportDefinitionFile)
Parameters
Type Name Description
FileInfo reportDefinitionFile

Information about a file path.

Examples
PageReport pr = new PageReport();
FileInfo fInfo = new FileInfo("AnnualReport.rdlx");
pr.Load(fInfo);
Exceptions
Type Condition
PersistenceException

Thrown if the report definition cannot be loaded.

ReportException

Thrown if the specified file does not appear to be a properly formatted RDLX file, or if the report definition has the wrong xmlns specified.

Load(TextReader)

Loads the report definition file.

Declaration
public void Load(TextReader reportDefinitionReader)
Parameters
Type Name Description
TextReader reportDefinitionReader

The reader to access the content of the report.

Examples
using (StreamReader sr = new StreamReader(path))
{
PageReport report = new PageReport();
report.Load(sr);
}
Exceptions
Type Condition
PersistenceException

Thrown if the report definition cannot be loaded.

ReportException

Thrown if the specified file does not appear to be a properly formatted RDLX file, or if the report definition has the wrong xmlns specified.