Intraweb / FastReports

edited 12:59PM in FastReport VCL
I've been using Intraweb / FastReports in my Indy Stand-Alone server applications without any issues. I'm now converting to use HttpSys (as IIS does) and running into quite a few issues. It may be due to the "threading" issues that are there when using Indy. Just checking if an upgrade to VCL 6 might help? Any others found issues and solved them? And yes I have tried all the suggested EnableThreadSafe, UseGlobalDatasetList etc. options.

Thanks.

Comments

  • gpigpi
    edited 12:59PM
    procedure TPrepareThread.Execute;
    var
      frxReport1: TfrxReport;
      frxPDFExport1: TfrxPDFExport;
    begin
      frxReport1 := TfrxReport.Create(nil);
      frxReport1.LoadFromFile(WebApplication.URLBase+'test.fr3');
      frxReport1.ShowProgress:=False;
      frxReport1.PrintOptions.ShowDialog:=False;
      frxReport1.EngineOptions.SilentMode:=True;
      frxReport1.EngineOptions.EnableThreadSafe := True;
      frxReport1.EngineOptions.DestroyForms := False;
      frxReport1.EngineOptions.ReportThread := Self;
      frxReport1.PrepareReport;
      frxPDFExport1:=TfrxPDFExport.Create(nil);
      frxPDFExport1.ShowProgress:=False;
      frxPDFExport1.ShowDialog:=False;
      frxPDFExport1.FileName:=WebApplication.URLBase + 'test.pdf';
      frxReport1.Export(frxPDFExport1);
    end;
    

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.