PDFPrint SDK return code

I’m trying the evaluation copy of the VeryPDF.
The thing I’m looking to is to automatically select a specific tray for a printer and print the document and I’m not very successful.
Here is the command I’m using:
string PrintCommandTemplate = "pdfprint -$ \"[LicenseKey]\" <-prompt> -chgbin <Tray> -printer \"<PrinterName>\" -paper \"pdf\" \"<DocFullPath>\"";
I forgot to tell: I’m trying SDK;
Working fine from exe but not from dll

The DLL Library is not using the latest version of the source code, after you purchased the DLL Library, please email to us your Order ID, we will send the latest version of DLL Library to you asap, the latest version of DLL Library will work same as Command Line application, we hoping this solution will helpful to you.

Can you tell me what means error code –4; or send me a list of errors?
Working good on the development machine but i get –4 on the real server.

Thanks for your message, please refer to following error codes,

int WINAPI VeryPDF_PDFPrint(LPCTSTR lpCommand)

Return values:
0: Print PDF file successfully.
-10: PDFPrint Library is damaged.
-11: Something is wrong in the command line options.
-101: Can't start "spooler" service, please start "spooler" service from Service Manager by manual.
-4: Can't locate specify printer in this computer.
-12: Can't open specify printer.
-13: Something is wrong when set options to printer.
-5: No input PDF file for printing.
9: Password Required to open this PDF file.
Other values: Something is wrong during render PDF file.

"-4" is "Can't locate specify printer in this computer."

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Verify Code   If you cannot see the CheckCode image,please refresh the page again!