开发者

MultiThreading with Crystal Reports, VB.net

开发者 https://www.devze.com 2023-03-27 06:25 出处:网络
I am implementing multithreading to show crystal Reports with Crystal Report Viewer, Done that successfully, but the form loaded is closing automatically, when I did not implement multithreading for t

I am implementing multithreading to show crystal Reports with Crystal Report Viewer, Done that successfully, but the form loaded is closing automatically, when I did not implement multithreading for the same I did not find any problem. The Code I am calling the reports is

objForm.ViewReport("~Path\CrystalReports\" & _ReportName, , _parameters)
objForm.Sho开发者_StackOverflow中文版w()

ViewReport Calls a form - frmViewReport which has CrystalReportViewer


Call objForm.ShowDialog() instead of Show()

What is happening is that the current thread that you are opening the objForm object on is ending and getting rid of everything on it. Calling ShowDialog will cause it to stay active until the Form is closed.

0

精彩评论

暂无评论...
验证码 换一张
取 消