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?