Multiple Attachments


#1

Hi:

I am using the latest freeware PDFCreator with Access VBA. Please help me figure out how to attach 2 existing PDF files to my new print job. I am trying this and it does not work:
Initialize… etc
docmd.OpenReport(“MyReport”)
If Not PDFCreatorQueue.WaitForJob(10)…etc
Set pJob = PDFCreatorQueue.NextJob
pJob.SetProfileByGuid (“DefaultGuid”)
pJob.SetProfileSetting “AttachmentPage.Enabled”, “True”
pJob.SetProfileSetting “AttachmentPage.File”, “c:\database\AttachmentPage1.pdf”

pJob.SetProfileByGuid ("DefaultGuid")
pJob.SetProfileSetting "AttachmentPage.Enabled", "True"
pJob.SetProfileSetting "AttachmentPage.File", "c:\database\AttachmentPage2.pdf"

#2

Hi,

I am afriad I don’t think it is possible to directly attach more than 1 file, but you could merge the 2 files you’d like to attach before attaching them. Or you can do it in 2 separate jobs.

Best regards,

Robin


#3

Here is the rest of my tale. I am producing a report in Access to which I want to attach 2 already existing PDF files. I get how to attach one PDF file but not two.
These other 2 PDF files are not produced in Access. I think that means they are not available to be in the Job queue so they could then be merged. Am I correct? How would it help to do it in 2 separate jobs? Your help is appreciated.