[]
        
(Showing Draft Content)

C1.Report.FlexReport.Load

Load Method

Load(string)

Load report.

Declaration
public void Load(string reportName)
Public Sub Load(reportName As String)
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)
Public Sub Load(stream As Stream, reportName As String, ByRef converted As Boolean)
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)
Public Sub Load(stream As Stream, reportName As String)
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)
Public Sub Load(fileName As String, reportName As String, ByRef converted As Boolean)
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)
Public Sub Load(fileName As String, reportName As String)
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)
Public Sub Load(doc As XmlDocument, reportName As String, ByRef converted As Boolean)
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, out bool, bool)

Loads a report from an XmlDocument.

Declaration
public void Load(XmlDocument doc, string reportName, out bool converted, bool loadAllReports)
Public Sub Load(doc As XmlDocument, reportName As String, ByRef converted As Boolean, loadAllReports As Boolean)
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.

bool loadAllReports

Load all reports from XmlDocument or just specified.

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)
Public Sub Load(doc As XmlDocument, reportName As String)
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)
Public Sub Load(doc As XDocument, reportName As String, ByRef converted As Boolean)
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)
Public Sub Load(doc As XDocument, reportName As String)
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.