如何以最快的方式显示晶体报告 [英] how to display crystall report in a fastest way
问题描述
i am vb.net programer,我正在使用while循环将我的记录添加到水晶报告这里是我的算法:
1.将每个项目添加到数据集对象
2.完成将项目添加到数据集对象后
3.set dataseource to crystall report
4.and display report
我的问题是: - 工作正常,但是当他们有更多的条目时,它需要花费大量时间来显示,所以如何减少将其加载到数据集对象和显示水晶报告的时间。谢谢帮助。 div class =h2_lin>解决方案
为什么要一个一个地填写它们?
< span class =code-keyword> SELECT * FROM GLMAST WHERE & quot;将那些返回的条件放在的需要ID
将此设置为您的com命令查询和
DataSet ds = new DataSet;
DataAdapter da =新DataAdapter
// 根据需要设置命令等
da.Fill(ds)
请将注释中的代码移到问题中。谢谢。
hi,
i am vb.net programer,i am using while loop to add my records to crystal report here is my algorithm:
1.adding each item to dataset object
2.after completion of adding items it into dataset object
3.set dataseource to crystall report
4.and display report
my problem is:-its working fine but but when their are more entries its taking huge time to display ,so how to reduce time of loading it into dataset object and display crystal report.Thanks for helping.
Why would you fill them one by one?
SELECT * FROM GLMAST WHERE "put those conditions that return you the list of need IDs
Set this as your command query and
DataSet ds = new DataSet; DataAdapter da = New DataAdapter // set command etc as needed da.Fill(ds)
Please move the code from comment into the question. Thank you.
这篇关于如何以最快的方式显示晶体报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!