Export to PDF without ShowReport()

Hi,

When I try to generate a PDF file with the command frxReport.Export(frxPDFExport), I receive an error message like this : "Impossible to open the file because it does not contain any page".

It seems that I must first execute frxReport.ShowReport(frxPDFExport) to generate pages, then execute frxReport.Export(frxPDFExport). It's a problem for me because I would like to generate PDF files in batch mode.

My question : is it possible to create PDF files without executing the ShowReport procedure beforehand ?

Thank you.

Regards.

Groupir.

Comments

  • gpigpi
    edited 9:55PM
    You should prepare report first
    frxReport.PrepareReport;
    frxReport.Export(frxPDFExport);
  • edited 9:55PM
    gpi wrote: »
    You should prepare report first
    frxReport.PrepareReport;
    frxReport.Export(frxPDFExport);
    Thank you gpi. It works well now.

    Groupir.

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.