?
Solved

How can I merge to PDF Files in VB6 using PDFCreator COM

Posted on 2014-07-24
3
Medium Priority
?
2,236 Views
Last Modified: 2014-07-25
How can I merge to PDF Files in VB6 using PDFCreator COM?

Here is the code I'm using.  PDFCreator prints files to a PDF so the second file overwrites the first and doesn't combine.  Is there a "Wait" I should put in to pause it in the printer spooler to combine?
With opt
           .AutosaveDirectory = exportpath$ & "\"
           .AutosaveFilename = "ALLSAM.pdf"
           .AutosaveFormat = 0 ' PDF
           .UseAutosave = 1
           .UseAutosaveDirectory = 1
           .AutosaveStartStandardProgram = 0
         
 End With
 Set PDFCreator1.cOptions = opt
 
 Set Printer = Printers(PrinterIndex("PDFCreator"))
        With Printer
            File1 = "C:\data\SAM1.pdf"
            File2 = "C:\data\SAM2.pdf"
            PDFCreator1.cPrintFile (File1)
            PDFCreator1.cPrintFile (File2)
            PDFCreator1.cCombineAll
        End With
        PDFCreator1.cPrinterStop = False

Open in new window

0
Comment
Question by:AndrewBanfer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 101

Accepted Solution

by:
mlmcc earned 2000 total points
ID: 40219864
In reading the manual it is a multiple step process to merge them.

FIrst step is to create a queue for the conversion jobs then you can merge them

Single file
http://www.pdfforge.org/pdfcreator/manual/simpleconversion

Merging files
http://www.pdfforge.org/pdfcreator/manual/multipleconversion

mlmcc
0
 

Author Closing Comment

by:AndrewBanfer
ID: 40219952
Thanks very much!  Very helpful!  

Have a great day!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question