PDF export

edited 4:15PM in FastReport 4.0
I am writing a report which contains statements for a large number of customers (300-400) My clients would like to email the statements so I am asked to created individual PDFs.

One way I can think of is split the query, but I am not sure that running 300 queries and running the report 300 times is the best option; an alternative could be to have the PDF export generate the files, based on a grouping, filenames could also be generated on the fly with a base plus an autoincremented suffix. Is there any way to do this with the current export to PDF ? would someone know where to start to do this ?

thanks

Didier

Comments

  • gpigpi
    edited 4:15PM
    You may set TfrxPDFExport->PageNumbers and export a range of pages
  • edited 4:15PM
    Sorry for not answering earlier, I was away on business

    Thanks for your suggestion, I'll give that a go

    Didier
  • edited 4:15PM
    I think it would be far easier to run the query and report 300+ times. After all, this is what computers are for, to perform repetitive tasks.
    IMO, filenames using an auto incrementing prefix is just trouble because you will not be able to immediately tie up an export file with an account.
    I run a query for each account, create a PDF file with account code and date, so everything can be filed away and found easily if one wants to. This scheme also facilitates the virtual automatic production of copy statements at a later date if the customer asks for one.

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.