[]
Loads the report definition file.
public void Load(FileInfo reportDefinitionFile)
Type | Name | Description |
---|---|---|
FileInfo | reportDefinitionFile | Information about a file path. |
PageReport pr = new PageReport();
FileInfo fInfo = new FileInfo("AnnualReport.rdlx");
pr.Load(fInfo);
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. |
Loads the report definition file.
public void Load(TextReader reportDefinitionReader)
Type | Name | Description |
---|---|---|
TextReader | reportDefinitionReader | The reader to access the content of the report. |
using (StreamReader sr = new StreamReader(path))
{
PageReport report = new PageReport();
report.Load(sr);
}
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. |