将报告直接打印到打印机 [英] Print report directly to the printer
本文介绍了将报告直接打印到打印机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将报告直接打印到打印机,而不是在屏幕上查看?
谢谢/Furqan
Hi,
How can I print report directly to the printer, instead of viewing it on screen?
Thanks / Furqan
推荐答案
在这里,你要走了
使用C#和SQL Server 2000 Reporting Services以编程方式打印报告 [ ^ ]
^ ]
Here you go man
Printing Reports Programmatically Using C# and SQL Server 2000 Reporting Services[^]
How to render client report definition files (.rdlc) directly to the Response stream without preview[^]
首先,您必须创建一个新表单,例如(frmReportViewer)
然后将reportviewer拖到此表单中
然后选择报告文件作为reportsurce创建临时文件
之后---> frmReportViewer.ReportFileName.PrintToPrinter(1,True,0,0)
first you have to create a new form for example (frmReportViewer)
then drag the reportviewer in to this form
then select your report file as reportsurce to create a temp
afte that ---> frmReportViewer.ReportFileName.PrintToPrinter(1, True, 0, 0)
这篇关于将报告直接打印到打印机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文