Create PDF report file silently

Hi,

Say I have FRDataset1, MyFastReport and a PDFExport1 objects on my form.

The report is defined and everything works fine when previewing the report and exporting it to a PDF file.

However I just need to have the PDF file of the report directly and silently written. Filename is given i code and there should be no report preview or screen flashing.

How would I do that?

Thasnks for comments on this

regards

Tor

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 4:39PM
    load the report
    set any properties of the export filter
    call preparereport not showreport then via the ???TfrxReport.Export??? method
    .
    In the parameter of this method you should specify the export filter
    you want to use:

    frxreport1.export(name of exportfilter)
  • edited 4:39PM
    gordk wrote: »
    load the report
    set any properties of the export filter
    call preparereport not showreport then via the ???TfrxReport.Export??? method
    .
    In the parameter of this method you should specify the export filter
    you want to use:

    frxreport1.export(name of exportfilter)

    Thanks A LOT :-)

Leave a Comment