无预览打印Crystal报表 [英] Printing Crystal Report without Preview
本文介绍了无预览打印Crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在某个地方找到了这个代码,因为我想在没有预览的情况下打印水晶报告。
I found this code somewhere cause I want to print crystal report without the preview.
Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim repName As String
repName = CrystalReportSource1.ReportDocument.FileName
report.Load(repName)
report.PrintToPrinter(1, False, 0, 0)
我不知道我需要为CrystalReportSource1更改什么。请帮帮我。谢谢。
I don't know what I need to change for "CrystalReportSource1". Help me please. Thanks.
推荐答案
我在另一个论坛上回答了类似的问题。你可以查看下面的链接。
http://forums.asp.net/t/1731558.aspx?print+report+without+viewing+the+crystal+report [ ^ ]
I have answered a similar question in another forum. You can check the link below.
http://forums.asp.net/t/1731558.aspx?print+report+without+viewing+the+crystal+report[^]
这篇关于无预览打印Crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文