Click here to Skip to main content
15,883,647 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I found this code somewhere cause I want to print crystal report without the preview.

VB
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)


I don't know what I need to change for "CrystalReportSource1". Help me please. Thanks.
Posted

1 solution

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[^]
 
Share this answer
 
Comments
Doughnatch 14-Sep-14 4:42am    
why does CrystalDecisions.Web.CrystalReportViewer not exist in my vb.net 2008?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900