pdf print command line Network Printers Error (Error 13)

Good afternoon,

I have a client wanted to know if it’s possible to use PDFPrint to print to a network printer from the command line.  Are there any limitations to this, or does it require a local printer in order to function?
=================================
Yes, our pdfprint.exe does support network printer, you can use it by following command line,

Pdfprint.exe -printer "\\192.168.1.10\myPrinter" C:\test.pdf

VeryPDF
=================================
We are getting some errors back from PrintPDF when trying to print.  I have included a log with the error numbers below.  Can you tell me what's going on?

Thanks,

DateTime=2011-03-31T18:44:07.0986096Z
RCAutoFormsService Verbose: 1 : PrintThread: Waiting for Work.
    DateTime=2011-03-31T18:44:07.0986096Z
RCAutoFormsService Verbose: 1 : Queuing Print Job: D:\AVAI\DealTyper\TransactionForms\26\Form22.pdf to \\ryanspc\HP LaserJet 1022 - Ryan, DeleteWhenFinished=False, Copies=1
    DateTime=2011-03-31T18:44:22.7921788Z
RCAutoFormsService Verbose: 1 : PrintThread: Work found, Current Queue Length is 1
    DateTime=2011-03-31T18:44:22.7921788Z
RCAutoFormsService Verbose: 1 : Printing D:\AVAI\DealTyper\TransactionForms\26\Form22.pdf to \\ryanspc\HP LaserJet 1022 - Ryan
    DateTime=2011-03-31T18:44:22.7921788Z
RCAutoFormsService Verbose: 1 : Attempting to start D:\AVAI\DealTyper\App_Data\PDFPrint\pdfprint.exe -$ "56XSD5234455255WET58" -copies 1 -printer "\\ryanspc\HP LaserJet 1022 - Ryan" "D:\AVAI\DealTyper\TransactionForms\26\Form22.pdf"
    DateTime=2011-03-31T18:44:22.7921788Z
RCAutoFormsService Verbose: 1 : Waiting up to 60 seconds for process 4640 to terminate
    DateTime=2011-03-31T18:44:22.7931789Z
RCAutoFormsService Verbose: 1 : Process Terminated with code: -1001
  DateTime=2011-03-31T18:44:22.9571953Z
RCAutoFormsService Verbose: 1 : Process Output: Thank you for choosing our product.
Printing 'D:\AVAI\DealTyper\TransactionForms\26\Form22.pdf' file...
GetPrinterDevice:OpenPrinter("\\ryanspc\HP LaserJet 1022 - Ryan") failed, GetLastError() = 5 Time of printing is: 62ms(0.06s) Exit Code
=================================
Please add -debug parameter to printout detailed message, the debug message will helpful for you to find out where is wrong quickly,

Pdfprint.exe -debug -printer "\\192.168.1.10\myPrinter" C:\test.pdf

VeryPDF
=================================
I seem to be getting back error code 13 from PDF Print.  Do you have any indication as to what that error could mean?
Thanks!
=================================
Please refer to following values,

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.
"-13" is "Something is wrong when set options to printer.", please give full control to Everyone user account to target Network printer to try again. You can also use IP address to instead of domain name.

VeryPDF
=================================
We've tried a few things today, but still can't get around this error.  We have isolated the error to printers that are being shared by another computer on the network.

Allow me to describe our system:

We have some web services running on a Windows 2008 server with IIS7.  We are printing some PDFs with your tool when a user executes a specific command.  The printers that are installed directly to the server (I.E. not going through another computer) work great.  The printers being shared by another computer don't work.   I can print to those printers when I am logged in to the machine, so it seems to only be a problem when trying to have the service execute the print command.

Do you have any additional troubleshooting information that could help us?
=================================
"service" hasn't Network connection ability, you need run pdfprint.exe from Administrator user account, then you will get pdfprint.exe work properly.

Please download CmdAsUser from following page to try, you can use CmdAsUser to run pdfprint.exe from Administrator user account,

http://www.verydoc.com/exeshell.html

you can also set your service run as Administrator user account in Service Manager, if you don't know how to do, please feel free to let us know, we will provide the detailed information to you shortly.

VeryPDF

VN:F [1.9.20_1166]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)
pdf print command line Network Printers Error (Error 13), 10.0 out of 10 based on 2 ratings

Related Posts

This entry was posted in PDF Print and tagged . Bookmark the permalink.

One Response to pdf print command line Network Printers Error (Error 13)

  1. VeryPDF says:

    Question: PDFPrint v2.0 command line does not print on network resource with parameter -printer "\\srv\prn" in Windows Server 2008.

    PDFPrint v2.0 command line works fine when printing on a printer as a network resource in Windows Server 2000 using the -printer "\\server\printer" parameter, but when used in Windows Server 2008 show the error: Can not locate the "\\server\printer" printer in this computer, Please double check the printer name and to try again.

    What can we do to print to the network printer?

    Customer
    ----------------------------------------

    Please use IP address to instead of computer name to try again, e.g.,

    pdfprint.exe -printer "\\192.168.1.10\printer" D:\verypdf.pdf

    We hoping this way will useful to you.

    VeryPDF

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

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!