Printing to LPT1 in Win 7

Hi
We have a requirement to print shipping labels from our ERP system remotely; the ERP system does this by sending a file to LPT1 which then prints the label (the printer assigned to LPT1 is typically a Zebra LP2844 or Zebra GK420d and this is done via
the "net use" command).
We use 2X Application Server XG for remote access.  Most of the client warehouses have Windows XP boxes and the process has worked fine for many many years.
However one of our clients has purchased a new Windows 7 box and for the life of me cannot get it to print a label to LPT1.  We have successfully set the Zebra printer as LPT1 via "net use" and can print fine to it but as soon as we print
a label from our ERP via 2X system nothing comes out.  The PC is configured
exactly the same way as I would have done with a Win XP box, same 2X client version, Zebra Universal Driver etc.
In order to rule out 2X being the problem I have brought the Win 7 PC into our own network and run the ERP program locally but it still won't print to LPT1.
At the moment I am guessing something has changed security wise in Windows 7 that is stopping the job from printing but I am not sure how to troubleshoot the situation further.
Any suggestions appreciated.

Hi flanjman,
Please first follow the guide and see if it would help here:
Fix printer problems
We may also try to enable printing logging:
Follow the guide below:
Windows Server 2008 R2 and Print Logging
Best regards
Michael Shao
TechNet Community Support

Similar Messages

  • Can't print to LPT1 from a command prompt - WIN XP

    I have an HP Deskjet 722C hooked straight up to the computer via a standard parallel printer cable (DB25 to Centronics) to the machine's parallel port. OS is XP Pro on a single user system with no network involved. For example, I load a file in DOS EDIT, go to File, Print, Print to LPT1, and it acts as if it printed but the printer doesn't respond. I can however print straight from any windows app with no problem. No other printer is directed to the LPT port(s). Tried the NET USE command (which I am quite familiar with) to redirect LPT1 to itself, no use. Deleted and let Win XP re-install the printer's driver, no use. Went into the machine's BIOS and tried every combination of EPP, ECP, etc., to no avail. The only logged in user to this machine has administrator rights. 
    What am I missing? 
    Thanks !!!!!!!!!! 

    Can you print from XP? If not maybe the wrong driver is associated with the printer. There may information in this document which could help:
    http://h10025.www1.hp.com/ewfrf/wc/document?docnam​e=bud09005&cc=us&dlc=en&lc=en&product=57565&tmp_tr​...
    If that doesn't help, are there any error message at all?
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • NW2004s Trial only Printer is LPT1:

    Hello,
    I have installed the actual NW2004s on a Win2000-System.
    OK, this Win-Version is not supported, but it runs properly and newer Versions would have the same Problem.
    The problem is, that the only available Printer is LPT1:
    I have an Epson-Printer(Stylus Photo 830U) connected via USB.
    I have no physical parallel printer-port.
    Any ideas, how to redirect the NW2004s-print-output to an USB-Printer or an PDF-File ?
    Thanks
    Armin

    Hello Oliver,
    the USB-printer is running now :-).
    For anybody who is interested, here are the steps:
    - Start the SAP printer daemon
    In Windows-menue: Start->Programs->SAP Front End->SAP printer daemon
    Or the exe-file: <Drive>:<path>\GUI\SAPgui\SAPlpd\SAPlpd.exe
    - Start transaction SPAD (Spool Administration)
    - In the card "Devices/Servers" find the field "OutputDevices"
    - Write the name of a new printer (for example: "MyPrinter") in the field "outputdevices"
    - Click the "Display"-Buttom at the right side of the field.
    The list of Output Devices appears, yet, there is "no entry defined".
    - In the main Menue choose the entry: "Output Device"->"create".
    Now you are in the Window Create Output Device, and the name of your new printer is already filled.
    - In DeviceAttributes/DeviceType choose: HKSAPWIN:MS Windows driver via SAPLPD.
    - In DeviceAttributes/SpoolServer choose: <YourServer>
    - In AccessMethod/HostSpoolAccessMethod choose: S: Print Using SAP Protokoll
    - In AccessMethod/Host printer write (exactly): __DEFAULT
    - In AccessMethod/Destination host write the <name of your server>.
    The servername must be the same name listed in the saplpd-window after Hostname:
    - Save your new printer.
    - Apply with "yes", that a shortname is automatically created.
    The printer should be ready now, but in the User maintanance(SU01), the default for "Output Immedately"
    is not activated. You have to change this setting for every user who wants to print, otherwise, your prints will remain in the spool-queue.
    Hope this helps
    Armin

  • Trying to network my hp deskjet 6940 printer via a new win 7 64 pc. the printer shows as "offline"

    I am trying to network my hp deskjet 6940 printer via a new win 7 64 pc.  The printer is visible but shows as "offline" and will not respond.
    Can the  hp deskjet 6940 printer operate over a lan using a win 7 64 pc?
    Thanks!

    Borneodiver,
    Since the site says the driver is already in Windows 7, then a different method of adding the printer will need to be performed to get the driver from Windows Update.
    First, uninstall the printer from the Windows 7 system.
    1.  go to devices and printers and select Add Printer at the top.
    2.  Select Add a local printer.
    3.  Create a new port with port type Local Port.
    4.  The port name will indicate where the printer is located.  The format will be \\<computer name>\<printer share name>.  Leave out the < > symbols.  For me, this would be \\mycomputer\printer.
    5.  The next screen will show a list of various printers.  Click the Windows Update button to update the list to the most current.  
    6.  Select your model printer from the list.
    The rest of the prompts should continue from there without any issue.  I do not have a photosmart 7760 to get the rest of the prompts from there, but it should work after these steps are completed on the Windows 7 system.
    If the printer was added using the network option, then it won't work on Windows 7 and there won't be an option for the driver since a network driver doesn't really exist for the printer since it is not natively networked.  
    Selecting the network option is usually selected in this process and it appears to not work with printers that are shared from a computer.  This process tricks the Windows 7 system into running the printer as if it was actually connected to the printer, but the port name directs it to the host computer.
    Let me know what happens.
    I did find these steps here in jimbo45's post.  I did perform the steps with a different computer and printer successfully, but it should work in this scenario as well.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Problem in printing to LPT1 through applet?

    Hello everyone,
    I am having problem in printing through Applet in LPT1 of remote client machine using "gridDoubleClicked" method of customized "GridPanel" which is third party component. The class structure is given below:
    public class GridPanel extends Panel implements GridPanelInterface, AdjustmentListener, KeyListener, FocusListener, Serializable
    }I am using above class to populate data in table and perform "double click" action. I am using JDK 1.5 and a self signed jar to access from remote machines through applet.The code, I am using is given below:
    public class testApplet extends Applet {
        printToLPT1 lpanel =new printToLPT1();
        public void init() {
          this.setLayout(new BorderLayout());
          this.add(lpanel, BorderLayout.CENTER);
          this.setSize(380, 250);
    public class printToLPT1 extends Frame{
    GridPanel grid;
    public printToLPT1() throws Exception {
    grid.addGridListener(new GridAdapter() {
                public void gridDoubleClicked(GridEvent ge) {               
                    testPrint();
    public static void testPrint() throws Exception {
            try {
                BufferedOutputStream pos = new BufferedOutputStream(new FileOutputStream("LPT1"));
                String str = "\n\n\n\n\n\n\n\n\n\n\n";
                pos.write(str.getBytes());
                pos.flush();
                pos.close();
            } catch (Exception fnfe) {
                throw new Exception("PRINTER SETUP IS NOT PROPER");
    }For applet, I have used following script in login.html:
    <APPLET
         height="200px"
         archive="testprinter.jar,jbcl.jar,grid.jar,plugin.jar" 
         width="390px"
         align="top"
         code="test.testApplet.class"
         name="Testing"
        ALT="<P>This applet requires Java to be enabled!  Check the browser options or see your SysAdmin." MAYSCRIPT>
        <P>This page requires Java!  Get it free from <A HREF='http://www.java.com/'>www.java.com</A>.</P>
    </APPLET>
    ------------------- If signed jar file of application is run using command line in client machine then "double clicked" of GridPanel method works fine and send signal to printer at LPT1 port but when same application is called using applet and accessed from remote machine with printer in LPT1 port, in that time also "double clicked" of GridPanel method works fine but printer could not be found and Exception is thrown java.lang.Exception:"PRINTER SETUP IS NOT PROPER" . Why is this happening? Can anyone suggest me the solution for this problem?
    Thanks in advance.
    -Ritesh
    Edited by: ritesh163 on Apr 15, 2010 2:56 PM

    The SSCCE for this problem is given below:
    //Applet class
    package test;
    import java.awt.BorderLayout;
    import javax.swing.JApplet;
    public class testApplet extends JApplet {
        testPrint lpanel =new testPrint();
        public void init() {
          this.setLayout(new BorderLayout());
          this.add(lpanel, BorderLayout.CENTER);    
          this.setSize(380, 250);    
    // Printing class...
    package test;
    import com.borland.jbcl.layout.XYConstraints;
    import java.awt.Color;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.io.BufferedOutputStream;
    import java.io.FileOutputStream;
    import wdn.grid.GridAdapter;
    import wdn.grid.GridData;
    import wdn.grid.GridEvent;
    import wdn.grid.GridPanel;
    public class testPrint extends javax.swing.JFrame {
        // Variables declaration - do not modify                    
        private javax.swing.JButton btnPrint;
        private javax.swing.JPanel jPanel1;
        // End of variables declaration     
        GridPanel grid;
        GridData gdata;
        String[] gridCols = {
            "Receipt No", "Name"};
        public testPrint() {
            grid = new GridPanel(0, 8);
            gdata = new GridData(0, 8);
            grid.setRowHeaderWidth(0);
            grid.setGridData(gdata);
            grid.setMultipleSelection(false);
            grid.setColWidths("100,60");
            grid.setColHeaders(gridCols);
            setGridProperties(grid);
            grid.setColSelection(false);
            this.setVisible(true);
            grid.addGridListener(new GridAdapter() {
                public void gridDoubleClicked(GridEvent ge) {
                   //This event works fine...
                    System.out.println("Press Re-Print button...");
                    try{
            stringToPrinter("testing by grid \n\n\n\n\n\n\n\n\n\n\n\n\n");
            }catch(Exception ex){
                ex.printStackTrace();
                public void gridCellsClicked(GridEvent ge) {
                    btnPrint.setEnabled(true);
            initComponents();
            jPanel1.add(grid, new XYConstraints(52, 60, 100, 150));
            grid.deleteRows(1, grid.getNumRows());
            grid.insertRow(1);
                        grid.setCellText(1, 1, "12134", false);
                        grid.setCellText(2, 1, "test" + "", false);
                        grid.repaintGrid();
        private void initComponents() {
            jPanel1 = new javax.swing.JPanel();
            btnPrint = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            btnPrint.setText("Print");
            btnPrint.setToolTipText("to Print");
            btnPrint.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    btnPrintActionPerformed(evt);
            org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);
            jPanel1.setLayout(jPanel1Layout);
            jPanel1Layout.setHorizontalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(jPanel1Layout.createSequentialGroup()
                    .add(36, 36, 36)
                    .add(btnPrint)
                    .addContainerGap(287, Short.MAX_VALUE))
            jPanel1Layout.setVerticalGroup(
                jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap(198, Short.MAX_VALUE)
                    .add(btnPrint)
                    .add(57, 57, 57))
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap())
            pack();
        }// </editor-fold>                       
        private void btnPrintActionPerformed(java.awt.event.ActionEvent evt) {                                        
            try{
            stringToPrinter("testing \n\n\n\n\n\n\n\n\n\n\n\n\n");
            }catch(Exception ex){
                ex.printStackTrace();
        public static void setGridProperties(GridPanel grid) {
            grid.setRowHeaderWidth(0);
            grid.setAutoResizeColumns(true);
            grid.setRowNumbers(true);
            grid.setCellSelection(false);
            grid.setRowSelection(true);
            grid.setHighlightColor(Color.blue);
            grid.setHighlightTextColor(Color.white);
            grid.setAutoResizeRows(true);
            grid.addKeyListener(new KeyAdapter() {
                public void keyTyped(KeyEvent e) {
                public void keyPressed(KeyEvent e) {
                    if (e.getKeyChar() == KeyEvent.VK_SPACE) {
                public void keyReleased(KeyEvent e) {
        public static void stringToPrinter(String str) throws Exception {
            try {
                System.out.println("inside stringToPrinter...");
                BufferedOutputStream pos = new BufferedOutputStream(new FileOutputStream("LPT1"));
                System.out.println("inside stringToPrinter...1-pos::"+pos);
                pos.write(str.getBytes());
                pos.flush();
                pos.close();
            } catch (Exception fnfe) {
                throw new Exception("PRINTER SETUP IS NOT PROPER");
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new testPrint().setVisible(true);
    }

  • HP2550n Color Laser Jet won't print colors correctly in Win 7

    This printer is an oldie but a goodie, and I don't want to buy a new one, just because I upgraded to Windows7 Pro 64 bit.
    I tried the Unviersal Driver, then the Post Script version, which is better than PCL6, but still not perfect like it was with XP Pro.   Still have pronblems printing colors from Acrobat XI documents - color pictures just print all in soid red.  MS office docs print fine.  
    Is there not a driver that will make this printer work right in Win 7 Pro ??? 

    Hello Mannkm,
    Welcome to the HP Support Forums! To get your issue more exposure I would suggest posting it in the commercial forums since this is a commercial product. You can do this at http://h30499.www3.hp.com/hpeb/
    I hope this helps!
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • How to get a driver for hp laser jet printer 1010 suitable for Win 8.1

    I have a hp laserjet 1010 black & whilte printer which survived through Win XP,  Win Vista, Win 7, and now ready for Win 8.1, and it needs to work with a 64-bit hardware and 64-bit operating system.
    HP made a robust product in LJ 1010 and I cannot throw it away for its quality till date.
    How do I get a driver software for this printer?
    Windows could not find it automatically, I couldn't find it at HP support site.
    Can someone help?

    The 1010 is not supported in Windows 8 by HP.
    Link
    Please mark the post that solves your issue as "Accept as Solution".
    If my answer was helpful click the “Thumbs Up" on the left to say “Thanks”!
    I am not a HP employee.

  • Problems printing to LPT1 from DOS programs in windows 7

    Hello
    I'm having problems connecting a Epson Lx-300 II to a computer (desktop) without parallel print port, the environment is:
    Windows 7 starter
    Epson printer Lx-300 II connected via usb adapter
    Old DOS program that just prints to LPT1 ports
    I have done the following: install the printer, print the test page, as the programs need the LPT1 I share the printer (short name Lx300), then I tried to connect to the lpt1 port via DOS command net use (net use lpt1: \\caja\Lx300) but it ask me a password,
    and no matter what password I give it return an error incorrect password.
    I've read that Microsoft blocked out this port for security reason, I've done this procedure many times with xp, 2000, milenium, it works fine, but this windows resist.
    I just don't know what else to do, I'll apreciate any help.
    M.A.M.

    Dos is not supported in Windows 7. You need to install DOS virtual servers such as DOS Box to run the program.Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Print to lpt1 where remote desktop client has usb printer

    I have a client with an usb printer and need to print an UPS label report from Microsoft Dynamic NAV on an remote server that prints only to LPT1. I've set the client printer as shared printer and selected LPT1 and USB ports.  When the client is connected
    to the server through remote desktop, the redirected printer can print a test print but running the report from the application on the server will not print  to the client's printer.  The report shows that it was sent to LPT1 but there are no errors
    or print jobs in the printer queue.  I've also tried to use "net use" to set up the shared printer to LPT1 but that didn't work either.  And I've installed the printer on the server to LPT1 as well and that did not work either. 
    Any help is greatly appreciated.  The server is Windows Server 2008 R2 and the client is Windows 7.
    Thanks,

    Hi,
    As this thread has been quiet for a while, we assume that the issue has been resolved. At this time, we will mark it as ‘Answered’ as the previous steps should be helpful for many similar scenarios. If the issue still persists, please feel free to  reply
    this post directly so we will be notified to follow it up.
    BTW,  we’d love to hear your feedback about the solution. By sharing your experience you can help other community members facing similar problems.
    Thanks for your understanding and Support!
    Regards.
    Dharmesh Solanki
    TechNet Community Support

  • Adobe 8.12 - error printing to LPT1

    Wonder if anyone can assist with this issue,
    Recently repaired a version of Adobe 8.12 as it wasn't converting documents to PDF via the normal methods.
    Managed to fix the button issue so documents convert but am now presented with an error when printing to LPT1.
    The problem is got round by removing the print job but i wish to remove the error message.

    Hi Wilson,
    Was this working fine before?
    What OS are you using?
    Try run the program as administrator (under the compatibilty tab) and check.
    Please check the discussion on the thread : LPT1 Port
    Regards,
    Rave

  • I have an hp p3005dn printer. how can i print to "lpt1" in command prompt mode. win 7.

    I am trying to get my printer so I can print to it from "Command Prompt".  I have done the "Port" thing to allow Windows to accept "LPT1" as an alternate printer spool name.  I know there are a command or two that are required in Command Prompt itself, but I do not know them.  Can anybody help with the commands required in Command Prompt.
    Thanks

    Hello Greenwood Newton HS,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Reset the printing system, then add the printer again.
    If the issue still persists, reset the printing system again.  Download and install your printer's drivers. Then, add the printer again.
    Best of luck,
    Mario

  • Deploying Printer to XP and Win 7 environment before it is connected to network

    I have a client that is getting 4 new office printers that will be replacing their leased printers.
    The third party company will come in, take away the old printers and set up the new printers. By set up, I mean they will connect the network cable, power it on, program the IP address I give them and take off. I need to pr-stage these printers so that users
    will be able to print as soon as the new printers are powered on. There are a lot of users depending on these printers to work with little downtime as possible. This is a 24/7 operation unfortunately. So, it is a server 2008 R2 / Windows XP / Windows 7 domain
    environment. 
    I am really getting close to the deadline of new printers arriving so I will walk through exact
    steps I have taken to get this set up. 
    Ok. I have a server running 2008 R2. I added the Print services role. 
    Right click 'Printers' -> Add printer
    select 'Add a TCP/IP Printer by IP address or hostname'
    'Type of device' = 'Autodetect'
    'hostname or IP address' = 'x.x.x.x' (IP address that printer will be set to)
    'Port name' = 'x.x.x.x_2'
    do NOT select 'auto detect printer driver'
     select 'Generic Network Card'
    select 'Install new driver'
    select 'Have Disk' and browse to driver
    'Printer name' = Printer Name
    select 'share this printer'
    'Share name' = Printer Name
    next, next, driver installs and printer installs, and finish. 
    Now you have the printer installed and showing up under printers. 
    Now, I right click printer and -> deploy with group policy
    Browse to the OU where users are located in ADUC, select the GPO that I have linked to that OU, select 'apply to users' click 'add' and click 'OK'.
    The GPO adds a setting:
    User Config -> Policies -> Windows Settings -> Printer Connections -> Path -> \\Server\Printer
    Now, I log in to a win 7 computer, gpupdate, printer shows up in devices and printers. I can't print to it obviously since it's not connected to the network yet. But, when I log in to an XP computer, run gpupdate, it does NOT populate in devices and printers. 
    When I run gpresult the policy is applied, but the printer is not showing up in devices and printers. Also,
    I can search for the printer and install it that way since I chose 'list in directory' from the printer server so I know the driver is correct. 
    What am I doing wrong? 
    Thank you in advance. 

    From the previous description, are you using Deployed Printers? If yes, you need to run pushprinterconnections.exe on XP. You can find a 32bit binary in \windows\system32 on a 32bit version of Windows 7 With SP1.
    Alan Morris Windows Printing Team
    One more question Alan, how can I set these printers I have deployed as the default for the users? 

  • How to print double sided in Win 8.1 similar to Win XP?

    Recently purchased Win 8.1 PC.  Installed my printer, a HP psc 1210.  All appears to work except unable to select "print both sides" as I was able to do on my old Win XP PC.  Noticed print properties in XP that Double Sided is marked 'Yes' while in Win 8.1 it is marked 'No'.

    Thanks Rashmi for your reply. Is there any other way to do so? Actually I am trying to automate the actions of an app where launching and subsequent exiting of an app is a test case. 
    No available command to allow you do this, I don't know if OEM have the permission
    Best Regards,
    Please remember to mark the replies as answers if they help

  • Problems with printing after upgrading to Win 8.1 and/ or explorer 11

    I just upgraded to Win 8.1 and now some things I want to print are not formatted properly. I've updated the drivers and the print doctor doesn't find anything wrong. The issue I see is when trying to print a shipping label, the label components are overlapping. On another computer it is fine and prints fine. Help?

    Hi FishingGuy58,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I see that you are having some printing issues since you upgraded to Windows 8.1.  So I can better assist you, Please respond with the Printer Model number.
    How Do I Find My Model Number?
    Once I have the information I can better research the issue and with any luck, come up with a resolution to this issue.
    Thank you for your time.
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • How do I print to a dot matrix printer using LPT1?

    Sorry, reposting the question. Hit the wrong button on the forum.
    OS is XP. 
    I have an old application
    that worked previously. I built a new executable and installer and
    installed on my target machine. This is a new machine but same brand and model motherboard as used
    before.
    I used VISA with LPT1 as the resource name. I get back an
    error 1073807302.
    The printer is working as evidenced by printing
    from Notepad. I installed the driver from XP. The printer is a Panasonic
    KXP1150. I need the tractor feed for this application.
    Anyone
    have an idea where to start trouble shooting?
    thanks,
    Chris
    Solved!
    Go to Solution.

    Here is the snippet of my code that is causing my consternation.
    See attached.
    Chris
    Attachments:
    lpt printer snippet.vi ‏26 KB

Maybe you are looking for