[]
Loads the report layout from the embedded resource.
public void LoadLayout(Type type, string resourceName)
Type | Name | Description |
---|---|---|
Type | type | A Type value from the assembly containing the embedded resource. |
string | resourceName | A string value representing the name of the embedded resource. |
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout(typeof(SectionReport), "resourceName");
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);
Type | Condition |
---|---|
ReportException | Thrown if |
Loads the report layout from the System.Xml.XmlReader.
public void LoadLayout(XmlReader reader)
Type | Name | Description |
---|---|---|
XmlReader | reader | A System.Xml.XmlReader value with which to load the layout. |
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
var reader = System.Xml.XmlReader.Create("Report.rpx");
sectionReport.LoadLayout(reader);
sectionReport.Document.Printer.PrinterName = String.Empty;
reader.Close();
Type | Condition |
---|---|
ReportException | Thrown if the |
Loads the report layout from the file.
[Obsolete("This method has been deprecated. Please, use LoadLayout(XmlReader) method instead")]
public void LoadLayout(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | A string value representing the name of the file containing the layout. |
var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout("Report.rpx");
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);
Loads report's layout from file.
[Obsolete("This method has been deprecated. Please, use LoadLayout(XmlReader) method instead")]
public void LoadLayout(string fileName, out ArrayList errors)
Type | Name | Description |
---|---|---|
string | fileName | A string value representing the name of the file containing the layout. |
ArrayList | errors | An ArrayListvalue used to store layout validation errors encountered during the loading process. |
SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.LoadLayout("Report.rpx", out System.Collections.ArrayList error);
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);
Loads the report layout from the stream.
[Obsolete("This method has been deprecated. Please, use LoadLayout(XmlReader) method instead")]
public void LoadLayout(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | A Stream value containing the layout. |
SectionReport sectionReport = new SectionReport();
using (XmlTextReader reader = new XmlTextReader("Report.rpx"))
{
sectionReport.LoadLayout(reader);
}
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);
Loads the report layout from the stream.
[Obsolete("This method has been deprecated. Please, use LoadLayout(XmlReader) method instead")]
public void LoadLayout(Stream stream, out ArrayList errors)
Type | Name | Description |
---|---|---|
Stream | stream | A Stream value containing the layout. |
ArrayList | errors | An ArrayListvalue used to store layout validation errors encountered during the loading process. |
SectionReport sectionReport = new SectionReport();
using (XmlTextReader reader = new XmlTextReader("Report.rpx"))
{
sectionReport.LoadLayout(reader, out System.Collections.ArrayList error);
}
sectionReport.Document.Printer.PrinterName = String.Empty;
viewer.LoadDocument(sectionReport);