开发者

MultiThreading with Crystal Reports, VB.net

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜