与数据集绑定时,可以快速处理水晶报表

问题描述:

你好朋友

我正在使用dataset1.xsd绑定一个水晶报表,并编写以下代码:

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();               



我的Crystal Reportviewer在另一页上,运行得很好,但问题是,处理 crRpt.SetDataSource(ds_Print.Tables [1]);
时,处理速度很慢,需要花费很多时间.
.

有什么技术可以使处理速度更快,或者我做错了什么,所以处理速度很慢.如果您有一些知识,请发送pzl.


谢谢&问候

Parveen Rathi



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

在这里您要走

Crystal Reports使用.NET C#缓慢加载(SetDataSource) [ ^ ]

Crystal Report在设置数据源时花费了大量时间 [
Here you go

Crystal Reports Slow Load Using .NET C# ( SetDataSource )[^]

Crystal Report is taking a lot of time while setting the datasource[^]