不使用打印机选择对话框打印

编程入门 行业动态 更新时间:2024-10-11 23:19:26
本文介绍了不使用打印机选择对话框打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想直接打印我的水晶报表,而不弹出打印机选择.我该怎么做?

I want to print my crystal report directly, without printer selection popup. How can I do this ?

myReportDocument.SetDataSource(saveDataSet); //Print crystalReportViewer1.ShowRefreshButton = false; crystalReportViewer1.ShowCloseButton = false; crystalReportViewer1.ShowGroupTreeButton = false; crystalReportViewer1.ReportSource = myReportDocument; crystalReportViewer1.PrintReport();

我正在使用默认(也是唯一的)打印机.

I'm using the default (and only) printer.

推荐答案

myReportDocument.PrintOptions.PrinterName = "PRINTER_NAME"; myReportDocument.PrintToPrinter(copies, collate, startPage, endPage);

更多推荐

不使用打印机选择对话框打印

本文发布于:2023-08-06 11:31:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1311990.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:对话框   打印机

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!