This is a sample of a procedure, that throws that error:
Public Sub PrintDocToPDF()
Dim lReturn As Long
Dim cPDF As CDIntfEx.CDIntfEx
Set cPDF = New CDIntfEx.CDIntfEx
lReturn = cPDF.PDFDriverInit("{Printer name}") '*** Printer exists and lReturn = 0
cPDF.DefaultDirectory = "C:\sample"
cPDF.DefaultFileName = "C:\sample\pdftest.pdf"
cPDF.SetDefaultPrinter
cPDF.FileNameOptions = 3 + 64
lReturn = cPDF.EnablePrinter("{Licence name}", _
"{Licence number"}) '*** Name and numer are correct and lReturn = 0
'*** This line throws error 2212
cPDF.BatchConvert ("{doc-path}\*.doc")
End Sub
I don't understand why it doesn't work.
