[]
        
(Showing Draft Content)

C1.WPF.FlexReport.C1FlexReport.Load

Load Method

Load(string)

Load report.

Declaration
public void Load(string reportName)
Parameters
Type Name Description
string reportName
Exceptions
Type Condition
Exception

Load(Stream, string, out bool)

Loads a report from an XML report definition in stream.

Declaration
public void Load(Stream stream, string reportName, out bool converted)
Parameters
Type Name Description
Stream stream

Stream containing XML report definition.

string reportName

Name of the report to retrieve from the file (case-insensitive).

bool converted

OUT: Contains true if report definition was imported from old C1Report format.

Remarks

You can get a list of reports available in the file using the GetReportList(Stream) method.

Load(Stream, string)

Loads a report from an XML report definition in stream.

Declaration
public void Load(Stream stream, string reportName)
Parameters
Type Name Description
Stream stream

Stream containing XML report definition.

string reportName

Name of the report to retrieve from the file (case-insensitive).

Remarks

You can get a list of reports available in the file using the GetReportList(Stream) method.

Load(string, string, out bool)

Loads a report from an XML report definition file.

Declaration
public void Load(string fileName, string reportName, out bool converted)
Parameters
Type Name Description
string fileName

Full name of the XML report definition file.

string reportName

Name of the report to retrieve from the file (case-insensitive).

bool converted

OUT: Contains true if report definition was imported from old C1Report format.

Remarks

You can get a list of reports available in the file using the GetReportList(string) method.

Load(string, string)

Loads a report from an XML report definition file.

Declaration
public void Load(string fileName, string reportName)
Parameters
Type Name Description
string fileName

Full name of the XML report definition file.

string reportName

Name of the report to retrieve from the file (case-insensitive).

Remarks

You can get a list of reports available in the file using the GetReportList(string) method.

Load(XmlDocument, string, out bool)

Loads a report from an XmlDocument.

Declaration
public void Load(XmlDocument doc, string reportName, out bool converted)
Parameters
Type Name Description
XmlDocument doc

The XmlDocument containing the reports.

string reportName

The name of the report to load (case-insensitive), can be null in this case first report will be loaded.

bool converted

OUT: flag that is set to true if the loaded report definition was converted from the legacy C1Report format.

Remarks

You can get a list of reports available in a file using the GetReportList(XmlDocument) method.

Load(XmlDocument, string)

Loads a report from an XmlDocument.

Declaration
public void Load(XmlDocument doc, string reportName)
Parameters
Type Name Description
XmlDocument doc

Reference to the XmlDocument that contains the reports.

string reportName

Name of the report to retrieve from the file (case-insensitive).

Remarks

You can get a list of reports available in the file using the GetReportList(XmlDocument) method.

Load(XDocument, string, out bool)

Loads a report from an XDocument.

Declaration
public void Load(XDocument doc, string reportName, out bool converted)
Parameters
Type Name Description
XDocument doc

The XDocument containing the reports.

string reportName

The name of the report to load (case-insensitive), can be null in this case first report will be loaded.

bool converted

OUT: flag that is set to true if the loaded report definition was converted from the legacy C1Report format.

Remarks

This method updates BasePath property to the directory from which the doc was loaded. You can get a list of reports available in a file using the GetReportList(XDocument) method.

Load(XDocument, string)

Loads a report from an XDocument.

Declaration
public void Load(XDocument doc, string reportName)
Parameters
Type Name Description
XDocument doc

Reference to the XmlDocument that contains the reports.

string reportName

Name of the report to retrieve from the file (case-insensitive).

Remarks

You can get a list of reports available in the file using the GetReportList(XDocument) method.