How to tell when a Crystal Report has loaded

橙三吉。 提交于 2019-12-24 08:16:33

问题


I am building a Winforms C# application that uses Crystal Reports.

I am loading a dummy report so that the Crystal Reports components are loaded when the user opens a Report. I do this because it takes a lot of time to load the report the first time.

I open a minimized, 0% opacity form containing the dummy report from a backgroundworker. I need to know when the report has loaded completely, so that I know when to close the form. I didn't manage to find an answer on-line, so my question is:

How can you tell programmatically when a Crystal Report has finished loading?


回答1:


I think there's nothing official about this in crystal report, so I suggest to workaround using callbacks and YourDummyReport.IsLoaded property. Hope it helps



来源:https://stackoverflow.com/questions/10693855/how-to-tell-when-a-crystal-report-has-loaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!