Visual Basic code to combine 2 or more pdf-files

About the programming interface for the virtual PDF printer driver.

Moderator: jr

Post Reply
mictrine
Posts: 2
Joined: Mon Jul 02, 2007 3:03 pm

Visual Basic code to combine 2 or more pdf-files

Post by mictrine »

Hi!

I have tried a code to print a single sheet i Excel from visual basic using the BullZip pdf printer, and it works perfect. Now i would like to go a little futher...

Does anybody know how to combine 2 or more pdf-files from visual basic?

Mic
jr
Site Admin
Posts: 500
Joined: Sun Mar 26, 2006 12:28 pm

Post by jr »

Have you tried to use the MergeFile setting of the PDF Printer? If you set that to the first file when you print the second then they should be linked together.

Regards,
Jacob
mictrine
Posts: 2
Joined: Mon Jul 02, 2007 3:03 pm

Post by mictrine »

Hi Jacob!

Yes i found out how to do it... Very cool

[code]
myobject.SetValue "output", SavePath & FileName
myobject.SetValue "MergeFile", SavePath & FileName
[/code]
rudevincy
Posts: 2
Joined: Tue Jan 13, 2009 11:29 pm

Re: Visual Basic code to combine 2 or more pdf-files

Post by rudevincy »

I also have a similar problem currently my program creates an excel worksheet then it pdf's the worksheet and closes the file and moves to the next one. It generates 250 reports. I would like to be able to make the pdf in one file (so it would be 250 pages) could I use the line of code

myobject.SetValue "output", SavePath & FileName
myobject.SetValue "MergeFile", SavePath & FileName

and if so where in my code can I place it?

PLEASE HELP ME
Post Reply