Hi,
Thanks for the sample code, although it looks like it is missing other
portions of the code. Particulatly, how are you ensuring that the pages get
merged together? Did you set the merge option manually via PDF reDirect Pro
>> Preferences >> batch printer settings, or do you set it
programmatically by changing the Merge option to "OW_Append"
As I see it, you have three options
1. Set the Batch printer "overwrite" option in PDF reDirect Pro to "Append" like
this:
PDF Overwrite = Append Output to Existing File
2. Set it programmatically like this:
oPDF.Settings_Overwrite =
OW_APPEND
3. Or, print all three outputs (1st page, middle and last page) to three
separate PDF files, and then merge them together using an array of the files you
want to merge (I called it Files_to_Merge in my sample
below):
oPDF.Utility_Merge_PDF_Files("C:\MergeTest.pdf",
Files_to_Merge)
I hope this helps. See below for sample merging code
that you can use. If you do it this way, you can then send the e-mail afterwards
(once the PDF is finalized) using this function: oPDF.Utility_Send_Email
Best regards,
------------- Michel Korwin-Szymanowski
EXP Systems LLC
|