GerhardV Posted February 23, 2017 Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2017 Administrators Share Posted February 23, 2017 Hi Please see demo: SyncClientUpdate - 4 - ShowMask Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 23, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 23, 2017 Administrators Share Posted February 23, 2017 Make sure MainModule has the EnableSynchronous option set 1 Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 23, 2017 Author Share Posted February 23, 2017 Thanks that did it! Thank you. What is that option for? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 23, 2017 Share Posted February 23, 2017 Hi, http://forums.unigui.com/index.php?/topic/7086-version-09996/ Best regards. 1 Quote Link to comment Share on other sites More sharing options...
GerhardV Posted February 23, 2017 Author Share Posted February 23, 2017 Thank you. Quote Link to comment Share on other sites More sharing options...
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.