Jump to content

FastReport 6_3 !


Abaksoft

Recommended Posts

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.

 

  • Like 6
  • Upvote 3
Link to comment
Share on other sites

  • 2 weeks later...
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...