Abaksoft Posted March 13, 2019 Share Posted March 13, 2019 Good Morning Sirs, From 6_3 edition something has changed in FastReport. If you are using a, empty frxDBDataSet (to save your time) and design your report on the fly, then add thees two line in your unit, from now : ___________________________________________________ frxReport1.DataSets.Add(DBMyDataSet); frxReport1.EnabledDataSets.Add(DBMyDataSet); ___________________________________________________ Thx to Paul Gursky (FastReport Support Team) procedure TfrmFastReport.Prepare_And_ShowReport(Report: TfrxReport; Exp: TfrxPDFExport); var AUrl : string; begin Report.PrintOptions.ShowDialog := False; Report.ShowProgress := false; Report.PreviewOptions.AllowEdit := False; Report.EngineOptions.SilentMode := True; Report.EngineOptions.EnableThreadSafe := True; Report.EngineOptions.DestroyForms := False; Report.EngineOptions.UseGlobalDataSetList := False; Exp.Background := True; Exp.ShowProgress := False; Exp.ShowDialog := False; fFile_Temp:=UniServerModule.NewCacheFileUrl(False, 'pdf', '', '', AUrl, True); Exp.FileName :=fFile_Temp; Exp.DefaultPath := ''; //****************************** Report.LoadFromFile(fFr3_File); // 1 DBMyDataSet.DataSet:=fFrDataSet; // 2 // FROM FastReport 6_3 (important) frxReport1.DataSets.Add(DBMyDataSet); //3 frxReport1.EnabledDataSets.Add(DBMyDataSet); //4 //****************************** fFrDataSet.DisableControls; // Yes Report.PrepareReport; Report.Export(Exp); UniURLFrame1.URL := AUrl; fFrDataSet.EnableControls; end; Best Regards. 6 3 Link to comment Share on other sites More sharing options...
GerhardV Posted March 13, 2019 Share Posted March 13, 2019 Thank you mate! Link to comment Share on other sites More sharing options...
Mohammed Nasman Posted March 13, 2019 Share Posted March 13, 2019 Thanks, even still version 5, but it will be real life saver when I upgrade. Link to comment Share on other sites More sharing options...
donlego Posted March 15, 2019 Share Posted March 15, 2019 any body know how to implement drill down report like fast report vcl do ? on unigui Link to comment Share on other sites More sharing options...
himmaaliya Posted March 26, 2019 Share Posted March 26, 2019 how fastreport print from local client... ? help Link to comment Share on other sites More sharing options...
Rebelss Posted March 26, 2019 Share Posted March 26, 2019 Thank you! Link to comment Share on other sites More sharing options...
Aan Posted March 27, 2019 Share Posted March 27, 2019 19 hours ago, himmaaliya said: how fastreport print from local client... ? help Unigui application is server based, fastreport cannot access windows api in the client. Report generated in the server, not in the client. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now