...
Code Block |
---|
|
Dim sectionReport As New SectionReport1()
Viewer1.LoadDocument(sectionReport)
|
加载基于模板的区域报表
Visual Basic. NET 代码粘贴到 Form_Load 中
Code Block |
---|
|
Dim sectionReport As New GrapeCity.ActiveReports.SectionReport()
Dim xtr As New System.Xml.XmlTextReader("..\..\SectionReport1.rpx")
sectionReport.LoadLayout(xtr)
xtr.Close()
Viewer1.LoadDocument(sectionReport) |
...
Code Block |
---|
|
SectionReport1 sectionReport = new SectionReport1();
viewer1.LoadDocument(sectionReport); |
加载基于模板的区域报表
将以下 C# 代码粘贴到 Form_Load 中
Code Block |
---|
|
GrapeCity.ActiveReports.SectionReport sectionReport = new GrapeCity.ActiveReports.SectionReport();
System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(@"..\..\SectionReport1.rpx");
sectionReport.LoadLayout(xtr);
xtr.Close();
viewer1.LoadDocument(sectionReport); |
...