MOGSY Posted May 21, 2018 Share Posted May 21, 2018 Hi I would like to use FastReport, however, it is not working for me. If I try to run the report from the main Form, it opens a blank page. If I place the same report in another form, it shows the form but also create a empty form. Following an example of the code I try to use.I would appreciate your help. frxReport1.ShowProgress := False; frxReport1.PrintOptions.ShowDialog := False; frxReport1.EngineOptions.SilentMode := True; frxReport1.EngineOptions.EnableThreadSafe := True; frxReport1.EngineOptions.DestroyForms := False; frxReport1.EngineOptions.UseGlobalDataSetList := False; frxReport1.ShowReport; Thanks MM Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 21, 2018 Share Posted May 21, 2018 Hi, Have you seen demo examples related to FastReport? \FMSoft\Framework\uniGUI\Demos\Desktop\FastReport... Quote Link to comment Share on other sites More sharing options...
MOGSY Posted May 21, 2018 Author Share Posted May 21, 2018 Thank you Quote Link to comment Share on other sites More sharing options...
jahlxx Posted May 21, 2018 Share Posted May 21, 2018 frxReport1.ShowReport;? I think this is not correct. Try prepare, export to pdf and send the generate pdf Quote Link to comment Share on other sites More sharing options...
allenchow Posted May 25, 2018 Share Posted May 25, 2018 Don't know why, when using the latest build, sometime it shows blank PDF ... Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 25, 2018 Administrators Share Posted May 25, 2018 Don't know why, when using the latest build, sometime it shows blank PDF ...What's the code you use to generate and show the report? Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
allenchow Posted May 28, 2018 Share Posted May 28, 2018 fn := 'inv_'+ qyinv.FieldByName('inv_no').AsString+'_'+FormatDateTime('yyMMddhhmmss.zzz', Now()) + '.pdf'; frxReport1.PrintOptions.ShowDialog := false; frxReport1.ShowProgress := false; frxReport1.PrintOptions.ShowDialog := false; frxReport1.EngineOptions.SilentMode := True; frxPDFExport1.Background := True; frxPDFExport1.ShowProgress := false; frxPDFExport1.ShowDialog := false; frxPDFExport1.FileName := UniServerModule.LocalCachePath +fn; frxPDFExport1.DefaultPath := ''; frxReport1.LoadFromFile(UniServerModule.StartPath + 'files\inv_s.fr3') frxReport1.PrepareReport(); frxReport1.Export(frxPDFExport1); FormUrlView1 := TFormUrlView.Create(UniApplication); FormUrlView1.URLFrame.URL := UniServerModule.LocalCacheURL + fn; FormUrlView1.Show; Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 28, 2018 Administrators Share Posted May 28, 2018 Can you please take a look at our FR demos? There is also a section in our document for fast reports. Sent from my SM-N950F using Tapatalk Quote Link to comment Share on other sites More sharing options...
allenchow Posted May 28, 2018 Share Posted May 28, 2018 OK ~THANKS! 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.