Configuring LPD for a USB printer


  1. Posts : 2
    Windows 7 Ultimate 32 bit
       #1

    Configuring LPD for a USB printer


    Hi all,

    I have a USB printer that I would like to configure to print via LPD/LPR. How do I do this?

    I have installed LPD and LPR already on my Win 7 Ultimate machine. I have also added my USB printer and it prints perfectly fine on its own. However changing the port to LPR does not seem to work.
      My Computer


  2. Posts : 660
    win7
       #2

    When you say you have changed the port to LPR do you mean LPT? as this would direct the print output to the parallel port on the back of your machine instead of to the USB. What are you using that needs LPD or LPR for? If you can give additional info, the guys here may be able to help solve your prob.
      My Computer


  3. Posts : 2
    Windows 7 Ultimate 32 bit
    Thread Starter
       #3

    I am developing a PHP script that will run locally on a computer. I need a way for that PHP script to fire off two print jobs simultaneously (each one going to a different USB printer that is directly connected to the machine). Because our client wants as little of a footprint as possible, building a full fledged Windows application is out of the question.

    Basically the problem is: how do I fire two print jobs simultaneously and automatically using the command line and existing software? Of course there is the DOS print command, but using this or echo does not seem to work on USB printers.

    So I believe the answer lies somewhere in running an LPD service on the machine, then configuring both printers to use an LPR port. And then using the "lpr" command in the command prompt to print to both printers. The problem is, I don't know how to get both printers set up properly.

    Here is what I'm doing exactly:
    1. installed Print and Document services from Programs and Features
    2. Start->Devices and Printers->right clicked on the printer->Printer properties->Ports tab->Add Port->LPR port
    3. I entered "localhost" for server name and the name of the printer as it appeared on Devices and Printers for printer name
    4. I did this for both printers
    5. on the command line, i typed: "lpr -S localhost -P printername testprint.txt
    6. I get "Error: print server did not accept request. Job aborted."

    Hope this explains the problem better

    Thanks,
    Lester
      My Computer


  4. Posts : 660
    win7
       #4

    I've had a look around and found this article that may help you out...give it a go, it was written for win2K but should still be good as the principle is the same:-
    Connecting an MS-Dos Application to a Printer on a USB Port on Windows 2000
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:50.
Find Us