CrystalReport中Reportsource的替代方法,以避免长时间处理 [英] Alternative of Reportsource in CrystalReport to avoid longtime processing

查看:37
本文介绍了CrystalReport中Reportsource的替代方法,以避免长时间处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

为什么 crystalreportViewer.ReportSource = objReport 大量数据需要花费太多时间?

甚至有时需要很长时间才能得到少量数据。

我等了一个多小时但是没有显示数据。



还有其他吗?可以排除此声明的选项?



我的查询需要几秒钟,因此不存在SQL优化问题。



但是当我们检查调试时,即使所有行都在编码中显示报告也需要很长时间。



请帮助我。

预付谢谢



问候,

Yogesh

解决方案

分配 SeparatePages Property true [ ^ ]

分配太多mu ch数据一次到ReportDocument / ReportViewer也发出。根据条件过滤数据。



这里有关于双方表现的一些建议



数据库方

优化的十大步骤SQL Server中的数据访问:第一部分(使用索引) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第二部分(重新考虑TSQL并应用最佳实践) [ ^ ]

在SQL中优化数据访问的十大步骤服务器:第III部分(应用高级索引和非规范化) [ ^ ]

优化SQL Server中数据访问的十大步骤:第四部分(诊断数据库性能问题) [ ^ ]

优化SQL Server中数据访问的十大步骤:第五部分(优化数据库文件并应用分区) [ ^ ]



Crystal报告方

报表分析器:优化Crystal Reports [ ^ ]

< a href =http://msdn.microsoft.com/en-us/library/ms225415%28v=vs.80%29.aspx>优化报告效果 [ ^ ]

优化Crystal Reports [ ^ ]

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



希望这些会有所帮助你

Hello ,
Why crystalreportViewer.ReportSource = objReport line takes too much time for huge data ?
Even it take long time sometime for little data .
I wait for more than hour but it is not displaying data.

Is there any other option which can exclude this statement ?

My Query takes few seconds so there is no issue of SQL optimization.

But when we check with debugging, it takes long time to display report even all lines executes in coding.

Please help me .
Thanks in Advance

Regards,
Yogesh

解决方案

Assign true for SeparatePages Property[^]
Assigning too much data at a time to ReportDocument/ReportViewer also issue. Filter data based on conditions.

Here some suggestions regarding the performance on both sides

Database side
Top 10 steps to optimize data access in SQL Server: Part I (use indexing)[^]
Top 10 steps to optimize data access in SQL Server: Part II (Re-factor TSQL and apply best practices)[^]
Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)[^]
Top 10 steps to optimize data access in SQL Server: Part IV (Diagnose database performance problems)[^]
Top 10 steps to optimize data access in SQL Server: Part V (Optimize database files and apply partitioning)[^]

Crystal reports side
Report Analyzer: Optimize Crystal Reports[^]
Optimizing Report Performance[^]
Optimizing Crystal Reports[^]
Crystal Reports Slow Load Using .NET C# ( SetDataSource )[^]

Hope these will help you.


这篇关于CrystalReport中Reportsource的替代方法,以避免长时间处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆