MOGSY Posted May 21, 2018 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
Sherzod Posted May 21, 2018 Posted May 21, 2018 Hi, Have you seen demo examples related to FastReport? \FMSoft\Framework\uniGUI\Demos\Desktop\FastReport... Quote
jahlxx Posted May 21, 2018 Posted May 21, 2018 frxReport1.ShowReport;? I think this is not correct. Try prepare, export to pdf and send the generate pdf Quote
allenchow Posted May 25, 2018 Posted May 25, 2018 Don't know why, when using the latest build, sometime it shows blank PDF ... Quote
Administrators Farshad Mohajeri Posted May 25, 2018 Administrators 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
allenchow Posted May 28, 2018 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
Administrators Farshad Mohajeri Posted May 28, 2018 Administrators 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
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.