Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have window base application in this i have crystal report

i have one page from that page i want to print all the report without viewing the report viewer
i have using window application using c#

looking for thanks
Posted
Updated 28-Jan-17 8:15am

I Got the solution its very simple
From the page where crystal report is viewed, copy the function or coding from the page

1. Remove the line Where crystal report view is there like
crystalReportViewer.ReportSource = objRpt;

2. instead of this add line :
RptObject.PrintToPrinter(1, false, 0, 0);

I M Done with it
It help u too , if anyone is needed
Thanks for ur support
 
Share this answer
 
Comments
dinhhungcd 4-Nov-16 10:45am    
Thanks mate, It help me too
Member 13122827 18-Oct-19 2:10am    
missing parameter values error show
Computechsoft 4-Jan-20 22:58pm    
How to print particular record you can see in selection formula
'RPTfrmCashReport.CrystalReportViewer1.ReportSource = CashReceipt
RptObject.PrintToPrinter(1, false, 0, 0)
RPTfrmCashReport.CrystalReportViewer1.SelectionFormula = "{Invoice_Master.Invoice_no} = '" & LblInvoiceno.Text & "'" Dim report As New CrystalDecisions.CrystalReports.Engine.ReportDocument

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