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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...