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
Solved

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

Posted on 2014-07-24
3
2,078 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
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

792 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