Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Printing from DOS to Tray 2?  (Read 5584 times)

0 Members and 1 Guest are viewing this topic.

KenL

    Topic Starter


    Beginner
    Printing from DOS to Tray 2?
    « on: March 17, 2008, 12:40:45 PM »
    Hello all. I have been scanning thru the posts and have not seen any reference to Printing in DOS to tray 2 yet.

    Is it possible?

    Ken
    Windows XP PRO/Server 2003. Date Format DD/MM/YYYY

    Dias de verano

    • Guest
    Re: Printing from DOS to Tray 2?
    « Reply #1 on: March 17, 2008, 01:40:53 PM »
    Tray 2 on what kind of printer?  ::)

    Aegis



      Expert

      Thanked: 67
      • Yes
      • Yes
      • Brian's Mess Of A Web Page
    • Experience: Experienced
    • OS: Windows 10
    Re: Printing from DOS to Tray 2?
    « Reply #2 on: March 17, 2008, 03:34:54 PM »
    My (very) limited experience suggests that selecting a tray is done at the print driver level.  Even in the old days of using DOS, I don't remember a way to point a print job to a particular tray output.

    This is, by no means, the last word on the subject!! 


    "For you, a thousand times over." - "The Kite Runner"

    Dias de verano

    • Guest
    Re: Printing from DOS to Tray 2?
    « Reply #3 on: March 17, 2008, 04:23:36 PM »
    If the printer supports PCL5 then commands can be sent to select the tray. Many HP printers support this.



    KenL

      Topic Starter


      Beginner
      Re: Printing from DOS to Tray 2?
      « Reply #4 on: March 17, 2008, 04:50:23 PM »
      Sorry, it is an HP4000

      Dias de verano, can you supply the DOS commands to do this please? I have never seen anything like this.

      Ken
      Windows XP PRO/Server 2003. Date Format DD/MM/YYYY

      Aegis



        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Printing from DOS to Tray 2?
      « Reply #5 on: March 17, 2008, 04:51:59 PM »
      Yes, this is interesting...


      "For you, a thousand times over." - "The Kite Runner"

      Dias de verano

      • Guest
      Re: Printing from DOS to Tray 2?
      « Reply #6 on: March 18, 2008, 01:21:51 AM »
      They are called 'escape sequences'. This used to be the way printers were controlled. Dot matrix and laser printers especially used printer control languages such as ESC-P (Epson) and various flavours of PCL (HP and others). The HP4000 can use PCL5e I believe. Check a PCL5 reference manual for details of how to control the printer using Escape Sequences.

      There are PCL5 drivers on the HP CDROM that came with the printer. If you do not have it, contact HP.





      Dusty



        Egghead

      • I could if she would, but she won't so I don't.
      • Thanked: 75
      • Experience: Beginner
      • OS: Windows XP
      Re: Printing from DOS to Tray 2?
      « Reply #7 on: March 18, 2008, 01:55:47 AM »
      Escape Sequences for the HP4000 are here.

       
      One good deed is worth more than a year of good intentions.

      Aegis



        Expert

        Thanked: 67
        • Yes
        • Yes
        • Brian's Mess Of A Web Page
      • Experience: Experienced
      • OS: Windows 10
      Re: Printing from DOS to Tray 2?
      « Reply #8 on: March 18, 2008, 12:38:37 PM »
      I'd completely forgotten about escape sequences -- completely.

      Let us know, KenL, how this works out for you.


      "For you, a thousand times over." - "The Kite Runner"

      KenL

        Topic Starter


        Beginner
        Re: Printing from DOS to Tray 2?
        « Reply #9 on: March 18, 2008, 02:45:26 PM »
        I looked up the escape sequences and this is not going to work for me. I would have to embed this into every report I produce and thus would require my client to print from tray 2 for every printer/report.

        I need something I can trigger by the print statement or by setting up a separate Queue on the server which defaults to the second tray. As of right now I have told my client to purchase another printer.

        I still want to figure this out. I have also looked at using START/MIN NOTEPAD /P filename.txt but that messes with the page length so my headings are not at the top of the page.

        I have also looked into creating a PDF file. One I tried from SourceForge.net required installing all kinds of other software (python, etc) and didn't work so I gave up.
        Windows XP PRO/Server 2003. Date Format DD/MM/YYYY