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."
Related Posts
Related posts:
pdfprint.exe chgbin and listbin does not seem to work
pdf print does print pdf file to printer only starts but without printing the page
print multiple PDF files in batches
How to control page range when printing PDF file?
How to minimize margins when printing PDF?
How to print PDF silently and add watermark on paper documents?
Print PDF file with correct bin/tray, orientation and paper size options
How to print a raw text file with embedded Escape codes to selected printer?