Export directly to PDF

Hi.
How can I directly export to PDF (in Delphi).
I mean, that it will be something like this (i don't want to see preview):
frxReport1.PrepareReport(True);
frxReport1.Export( {TfrxCustomExportFilter} );
I don't know how to use TfrxCustomExportFilter.
Thanks.

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 11:58AM
    inetMark wrote: »
    Hi.
    How can I directly export to PDF (in Delphi).
    I mean, that it will be something like this (i don't want to see preview):
    frxReport1.PrepareReport(True);
    frxReport1.Export( {TfrxCustomExportFilter} );
    
    I don't know how to use TfrxCustomExportFilter.
    Thanks.
    frxReport1.Export( the name of the export filter);
    before calling export you should set all the exportfilters properties
  • edited 11:58AM
    Yhx, but I know this. filter properties is TfrxCustomExportFilter. But I don't know how to create it.
  • gordkgordk St.Catherines On. Canada.
    edited 11:58AM
    from your delphi tool palett drop a tfrxpdfxportfilter on your form.
  • edited 11:58AM
    I cannot see nothing like that. But it is working like this now:
    oExportfilter := TfrxCustomExportFilter(frxPDFExport1);
    oExportFilter.ShowDialog := False;
    oExportFilter.FileName := aptd + '\test.pdf';
    frxReport1.PrepareReport(True);
    frxReport1.Export(oExportFilter);
    
  • gordkgordk St.Catherines On. Canada.
    edited 11:58AM
    pallette Fastreport 4 exports.
  • edited 11:58AM
    but in which unit is this fugging PDF exportfilter, what to include??

    In fugging Fastreport FMX will not be installed a exportfilter like in VCL.... i fugging hate this sh!t ..always the same
  • gpigpi
    edited 11:58AM
    Export filters are not included in the free FR FMX Embarcadero edition, they are included in the FR FMX Professional

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.