Quantcast
Channel: PDFCreator - pdfforge forums
Viewing all articles
Browse latest Browse all 2632

Merging PDF's with COM procedure

$
0
0

@Cem_Kapanci wrote:

Hello Everyone,

I Have an Access(2007) application and need to merge 2 PDF's wich I managed very simply with the following code:

Public Sub PDFMerge(ByVal PDF1 As String, ByVal PDF2 As String, ByVal PDF_Dest As String) 'Fusionne deux Docs PDF

_ Dim Pdf As Object, Fichiers(1)_
_ Set Pdf = CreateObject("pdfforge.pdf.pdf")_
_ _
_ Fichiers(0) = PDF1_
_ Fichiers(1) = PDF2_
_ _
_ Pdf.MergePDFFiles_2 Fichiers, PDF_Dest, True_
_ _
_ Set Pdf = Nothing_

End Sub

Except that this works with the 1.7.3 version of PDF Creator which is far too old to manage the other tasks I require !!(I just got version 3.2.2)... And the codeline:

Set Pdf = CreateObject("pdfforge.pdf.pdf")

generates a mistake as the COM has been uninstalled when I put version 3.2.2

Is there a way to use the old COM from ver 1.7.3 together with the ver 3.2.2 or at least a simple code in VBA
to replace my Sub??

Thanks for help

Cem

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2632

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>