回复 6楼lucky的帖子
帮您实现了一个--横、全在一页的打印效果,代码截图如下:
- private void button3_Click(object sender, EventArgs e)
- {
- rptTestHigh rpt1 = new rptTestHigh();
- rpt1.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.A4;
- //サイズ:A4 指定
- rpt1.PageSettings.PaperSource = System.Drawing.Printing.PaperSourceKind.AutomaticFeed;
- //給紙:自動 指定
- rpt1.PageSettings.Orientation = GrapeCity.ActiveReports.Document.Section.PageOrientation.Landscape;
- rpt1.PageSettings.Margins = new GrapeCity.ActiveReports.Document.Section.Margins(0,0,0,0);
- rpt1.PrintWidth = rpt1.PageSettings.PaperWidth * 2;
- rpt1.PageSettings.MirrorMargins = true;
- rpt1.Run(false);
- rpt1.Document.PrintOptions.PageScaling = GrapeCity.ActiveReports.Extensibility.Printing.PageScaling.ShrinkToPrintableArea;
- rpt1.PrintReport(true, true);
- }
复制代码
这里有一篇AR打印的博客,供您参考:ActiveReports区域报表实现自定义打印操作 |