Hi Nico Its so close to working. An example with child items would be really helpful as I keep getting this when trying to either open the file or attach to an email -
Is there a command to issue after printtodevices that unlocks the file ? It only happens when there are morore than 1 print in the PDF file. --------------------------- We can't open 'D:\Documents\MidSoft\SkipTrak\pdf\INV55531_POD.PDF'. It's possible the file is already open, or you don't have permission to open it.
For the last Report, set PDFDevice.EndPrintJob to True prior to calling Report.PrintToDevices. This is shown in the rbWiki example. When EndPrintJob is True, the PDF output file will be closed.
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
RAP is designed to be executed per report. RAP code is embedded inside a single report definition and executes during that report's generation process.
The task described in this thread manages multiple reports being generated in sequence and then merged into a single file.
While it could be possible to call a RAP pass-thru routine that merges multiple reports, it would take some trial and error to get the timing right. Basically, while executing a "main" report, you would then be generating and merging multiple other reports to file which could cause conflicts.
Comments
https://rbwiki.digital-metaphors.com/output/pdf/how-to-merge-multiple-reports-into-one-pdf/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Its so close to working. An example with child items would be really helpful as I keep getting this when trying to either open the file or attach to an email -
Is there a command to issue after printtodevices that unlocks the file ? It only happens when there are morore than 1 print in the PDF file.
---------------------------
We can't open 'D:\Documents\MidSoft\SkipTrak\pdf\INV55531_POD.PDF'. It's possible the file is already open, or you don't have permission to open it.
For the last Report, set PDFDevice.EndPrintJob to True prior to calling Report.PrintToDevices. This is shown in the rbWiki example. When EndPrintJob is True, the PDF output file will be closed.
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Yes, it was a data error as only didn;t work when there was 1 record.
Thanks
RAP is designed to be executed per report. RAP code is embedded inside a single report definition and executes during that report's generation process.
The task described in this thread manages multiple reports being generated in sequence and then merged into a single file.
While it could be possible to call a RAP pass-thru routine that merges multiple reports, it would take some trial and error to get the timing right. Basically, while executing a "main" report, you would then be generating and merging multiple other reports to file which could cause conflicts.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com