水晶报告第一次表现缓慢。 [英] crystal report slow performance at first time.

查看:77
本文介绍了水晶报告第一次表现缓慢。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的专家,



我的水晶报告工作正常。但它第一次非常慢。

背景工作者是解决方案。有些人告诉我们在执行之前加载虚拟报告。但如何加载虚拟报告?





问候,



Anil Kumar

Dear Expert,

My crystal report is working fine. But it very slow at the first time.
Is Backgroundworker the solution. Some body tells us to load a dummy report before its execution. But how to load a dummy report?


Regards,

Anil Kumar

推荐答案

一个很可能的原因是运行第一个报告所需的时间很长,因为需要加载所有必需的dll等。基本上你不能删除这个时间,但是你可以在程序启动时在后台运行一些报告。这可以在后台工作程序中完成,这样它就不会影响主程序。



报告本身并不重要。只需创建一个空的报告并在后台运行它,并在报告准备好后立即将其关闭。重点是加载dll,以便在运行实际报告时,所有必需的程序集都可以在内存中找到。
A very likely reason is that the time required to run the first report is high because all the necessary dll's etc need to be loaded. Basically you cannot remove this time but you can run some report in background when the program starts. This can be done in a background worker so that it doesn't affect the main program.

The report itself doesn't matter. Just create an empty report and run it in the background and close it as soon as the report is ready. The whole point is to get the dll's loaded so that when an actual report is run all the necessary assemblies are found in memory.


这篇关于水晶报告第一次表现缓慢。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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