tangke888 发表于 2023-5-22 14:41:32

可以打,但这样构建参数后,打印速度慢了很多,有没有原来那种写法,直接设置打印机名,其它参数就按打印模板上设置的。另外这样打出来后,方向也反了,如图所示

tangke888 发表于 2023-5-22 14:44:58

https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=49016&extra=page%3D5如这里所示,为什么版本16 的不能?

Bella.Yuan 发表于 2023-5-22 15:56:31

tangke888 发表于 2023-5-22 14:44
https://gcdn.grapecity.com.cn/forum.php?mod=viewthread&tid=49016&extra=page%3D5如这里所示,为什么 ...

您好,16版本已关闭该接口,所以暂时没办法进行使用,打印方向相反,您设置纸张方向为横向测试看看。

打印代码也可以参考下面的写法:

GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(@"demo无参数1.rdlx"));
            GrapeCity.ActiveReports.Document.PageDocument reportDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
            reportDocument.Printer.PrinterName = @"\\xa-printer\XA-205-Lobby";//打印机名称
            reportDocument.Printer.PrinterSettings.DefaultPageSettings.Margins.Bottom = 0;
            GrapeCity.ActiveReports.PrintExtension.Print(reportDocument, false, false);


tangke888 发表于 2023-5-30 11:09:16

解决了

Bella.Yuan 发表于 2023-5-30 11:22:26

tangke888 发表于 2023-5-30 11:09
解决了

好的,那本贴就先结贴啦,有问题您开新帖哦~:handshake
页: 1 [2]
查看完整版本: ActiveReports 16.2 代码无法指定模板使用的打印