回复 6楼lmcshy5311的帖子
以下是操作 SectionReport 数据字段的方法:
- using GrapeCity.ActiveReports;
- using GrapeCity.ActiveReports.PageReportModel;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace _13726_2
- {
- public partial class WebForm1 : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (IsPostBack)
- {
- return;
- }
- SectionReport sr = new SectionReport();
- sr.LoadLayout("..\\..\\SectionReport.rpx");
- sr.Run();
- FieldCollection fc = sr.AllFields();
- Field fi = fc[0];
- this.WebViewer1.Report = sr;
- }
- }
- }
复制代码 |