priyanka

priyanka

  • NA
  • 215
  • 124k

How to print my report at once in c#

Aug 14 2018 4:49 AM
How to print crystal report without previewing it in c#
suppose i have several employee data stored in datatable dt,my crystal report holds details of each employee.
 
for(int i=0;i<=dt.rows.count-1;i++)
{
 when we are binding datatable to crystal report,i are using following code.
crystalReportViewer1.ReportSource = dt;
crystalReportViewer1.Refresh();
 
But it shows me preview of the data. 
 
what i have to write inside the loop,so that it will print all employee salary details in crystal report ,without showing preview at a time 
 
 
I have attached my salary slip format 

Attachment: salaryslip.zip

Answers (1)