I am trying to send documents to the queue via VBA, but when I have my default PDF application set to PDF Architect, it doesn’t send. Checking the log, I see the error:
‘:2017-05-02 18:30:49.8599 [Error] pdfforge.PDFCreator.Core.Printing.Printing.PrintCommand.Print: Exception during printing
Type: System.ComponentModel.Win32Exception
Message: No application is associated with the specified file for this operation’
This error does not occur when I have my default application set to Adobe DC Reader.
Any help would be appreciated. Adobe seems to take a very long time, I am certain things will be faster with PDF Architect.
PDF Creator Version 2.5.2
PDF Architect Version 5.0.22.32126 64 Bit
OS: Windows 7
My Code
[code] Sub PDFCreatorCombine(sPDFName() As String, sMergedPDFname As String)
Dim oPDF As PDFCreator_COM.PdfCreatorObj, q As PDFCreator_COM.Queue
Dim pj As PrintJob
Dim v As Variant, i As Integer
Dim fso As Object
Set fso = CreateObject(“Scripting.FileSystemObject”)
Set q = New PDFCreator_COM.Queue
With q
.Initialize
If LBound(sPDFName) = 0 Then
.WaitForJobs UBound(sPDFName) + 1, 1
Else
.WaitForJobs UBound(sPDFName), 1
End If
Set oPDF = New PDFCreator_COM.PdfCreatorObj 'PDFCreator.clsPDFCreator
i = 0
For Each v In sPDFName()
If fso.FileExists(v) Then oPDF.PrintFile v
i = i + 1
Next v
.MergeAllJobs
Set pj = q.NextJob
With pj
.SetProfileByGuid "DefaultGuid"
.SetProfileSetting "Printing.PrinterName", "PDFCreator"
.SetProfileSetting "Printing.SelectPrinter", "SelectedPrinter"
.SetProfileSetting "OpenViewer", "false"
.SetProfileSetting "OpenWithPdfArchitect", "false"
.SetProfileSetting "ShowProgress", "false"
.ConvertTo sMergedPDFname
End With
.ReleaseCom
End With
End Sub [/code]