回复 1楼a729815303的帖子
测试代码如下:
- PageReport pr = new PageReport(new FileInfo(Path.Combine(Application.StartupPath, "..\\..\\PageReport1.rdlx")));
- pr.Document.Printer.PrinterName = "Microsoft XPS Document Writer";
- pr.Document.Printer.Landscape = true;
- pr.Run();
- pr.Document.Print(false,false,false);
复制代码 |