Split report in multiple PDF
Hi, a have a report (XE with rb 15) that print invoice.
Invoice can be one page or 2 or more pages.
Invoice number is the group var that switch to another page.
How can I split the report in multiples PDF and each invoice (1 or more
pages) suits in one pdf file?
Is it possible to send this files by mail to?
One solution will be call the report for each invoice and do a loop to
traverse all invoices.
--
This discussion has been closed.
Comments
Take a look at the following articles.
http://www.digital-metaphors.com/rbWiki/Output/Email/How_To...Email_Groups
http://www.digital-metaphors.com/rbWiki/Output/PDF/How_To...Separate_File_for_Each_Group
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I got separated pdf for each group. This is ok.
Each invoice (group that split in separeted pdf), has their xml files
for orders in invoice.
When reportbuilder generate a pdf for each group, a routine create a
folder with pdf name and copy xml order files of invoice for this
folder. This is OK.
I didn´t get to copy invoice pdf, because it isn´t available.
Which event (AfterGroupBreak or other?) I should put a routine to copy
invoice pdf to folder?
Best
Regards
move the file. The OnEndJob will fire too early as well.
My suggestion would be to either rename them all an once when the report
has finished generating, or perhaps use the OnStartJob of the device and
moving the previously generated file (checking that the file exists
because the first time through will be empty).
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com