Click here to Skip to main content
15,880,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am creating a crystal reports using Visual Studio 2010 and using ADO Dataset for database field on report. now i want to set default 2 copies of bill on print button on crystal report viewer. code which i have written on crystal report viewer load is

Report.Bill objRpt = new Report.Bill();
objRpt.SetDataSource(DT1);
objRpt.PrintToPrinter(2, true, 0, 0);
crystalReportViewer1.ReportSource = objRpt;
crystalReportViewer1.Refresh();


But it is printing only single copy of bill. Can anyone tell me how can I fix that? I am very new in crystal reports.
Posted

1 solution

 
Share this answer
 

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