Click here to Skip to main content
14,739,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.PrintToPrinter(1, False, 0, 0)

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

1 solution

I have answered a similar question in another forum. You can check the link below.[^]
Doughnatch 14-Sep-14 4:42am
why does CrystalDecisions.Web.CrystalReportViewer not exist in my 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