你需要在ReportStart事件中添加PageBreak。例如:
- this.ReportStart += new EventHandler(NewActiveReport1_ReportStart);
- void NewActiveReport1_ReportStart(object sender, EventArgs e)
- {
- if (条件)
- {
- PageBreak pageBread = new PageBreak();
- pageBread.Location = new PointF(0, 1.25f);
- this.Sections["detail"].Controls.Add(pageBread);
- }
- }
复制代码 |