Click here to Skip to main content
15,909,939 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hello friends

I am bind a crystal report using dataset1.xsd, and write the following code :

//make object in class of crysta report - CrystalReport1 crRpt = new CrystalReport1();
                    SqlDataAdapter adp_Print = new SqlDataAdapter("select_bill_for_Print", con);
                   DataSet2 ds_Print = new DataSet2();
                    adp_Print.SelectCommand.CommandType = CommandType.StoredProcedure;
                    adp_Print.SelectCommand.Parameters.AddWithValue("@invoice", Convert.ToInt32(txtinvoice.Text));                        
                    adp_Print.Fill(ds_Print, "tbcitymaster,tbcompanymaster,tb_Temp_Bill_for_Print,tb_Temp_Customer_for_Print");                    
                    crRpt.SetDataSource(ds_Print.Tables[1]);
                   bill_Preview bill = new bill_Preview();                          
                   bill.crystalReportViewer1.ReportSource = crRpt;
                    bill.crystalReportViewer1.Refresh();
                   bill.Show();               


My crystal reportviewer is on another page, it working very well but problem is that the processing is very slow it take to much time when comes the line crRpt.SetDataSource(ds_Print.Tables[1]);
.

Is there any technique to make fast processing or whate i doing wrong so the processing is slow. pzl send if you have some knowledge.


Thanks & Regards

Parveen Rathi
Posted
Updated 28-Apr-11 0:05am

1 solution

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