GerhardV Posted February 23, 2017 Posted February 23, 2017 I have a report module based on the UniGUI demos. Some of the larger reports take a while to generate and I want to show the screenmask with "Preparing report...". The parent of the UniURLFrameReport is a TuniFrame. I have tried different variations but cannot get the screenmask to show properly. The mask only appears once the PDF report is downloading. procedure TframeReport.Initialize; var dm : TdmReportData; begin UniURLFrameReport.ShowMask('Preparing report...'); dm := TdmReportData.Create(nil); try UniURLFrameReport.URL := dm.GenerateReportPDF(ImqsReport, ''); finally dm.Free; UniURLFrameReport.HideMask; end; end; Any advice? Quote
Administrators Farshad Mohajeri Posted February 23, 2017 Administrators Posted February 23, 2017 Hi Please see demo: SyncClientUpdate - 4 - ShowMask Quote
GerhardV Posted February 23, 2017 Author Posted February 23, 2017 Hi Farshad: Thank you but it does not seem to work with TUniFrame, I also tried with "UniURLFrameReport" but same result. I also noticed that TUniFrame does not have a published property ScreenMask. procedure TframeReport.Initialize; var dm : TdmReportData; begin ShowMask('Preparing report...'); UniSession.Synchronize; dm := TdmReportData.Create(nil); try UniURLFrameReport.URL := dm.GenerateReportPDF(ImqsReport, ''); finally dm.Free; HideMask; end; end; Quote
Administrators Farshad Mohajeri Posted February 23, 2017 Administrators Posted February 23, 2017 Make sure MainModule has the EnableSynchronous option set 1 Quote
GerhardV Posted February 23, 2017 Author Posted February 23, 2017 Thanks that did it! Thank you. What is that option for? Quote
Sherzod Posted February 23, 2017 Posted February 23, 2017 Hi, http://forums.unigui.com/index.php?/topic/7086-version-09996/ Best regards. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.