Announcement

Collapse
No announcement yet.

printing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • printing

    My new printer is hooked up to a USB port.How can get a lprint
    command to access this port using DOS PB 3.5?

    ------------------
    puddin9
    puddin9

  • #2
    You can't. DOS programs cannot access USB ports. Download the
    eval copy of Lance's DosPrint utility.

    Re: Fred Katzel post of 3 or 4 weeks ago.

    I would post the actual URL but I just found a bug in SlimBrowser.

    ------------------




    [This message has been edited by Mel Bishop (edited June 01, 2003).]
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      George Bush, I hope that is your real name. Aliases and handles are not permitted on this site. Welcome to the forums!
      USB communication is handled by internal windows drivers and it is not possible to do it through DOS. The only way a DOS program can do it is by passing a message to a cooperative Windows program that will do the actual work.
      regards,

      ------------------
      [email protected]
      :) IRC :)

      Comment


      • #4
        George,

        Do not be offended, but if you are not using your real name,
        then you should re-register with your real name before making any
        more posts. That is the rules of these forums. <IMG SRC="http://www.powerbasic.com/support/forums/smile.gif" ALT="smile">

        At any rate, the main reason for this posting is to recommend
        Lance's DOSPrint library. It is a 32-bit Windows software that
        allows your DOS programs to print to just about any printer, including
        USB printers. Your DOS program calls it via the SHELL statement.
        I myself am a licensed user of DOSPrint, and I think it is a very
        useful software. I have no regrets for spending the money to purchase
        my license.

        The link to DOSPrint, where you can download the evaluation version
        to see if it meets your needs, is:

        http://www.dosprint.com/


        ------------------
        Clay Clear's Software - Frames-Only Site

        [This message has been edited by Clay Clear (edited June 02, 2003).]

        Comment


        • #5
          Easy there, guys-- you'd be surprised how many people are named "George"
          or "Bush". The Prez doesn't have a trademark on it. <IMG SRC="http://www.powerbasic.com/support/forums/wink.gif" ALT="wink">

          ------------------
          Tom Hanlin
          PowerBASIC Staff

          Comment


          • #6
            Point well taken, Tom.

            I apologize for making general assumptions, George. <IMG SRC="http://www.powerbasic.com/support/forums/frown.gif" ALT="frown">


            ------------------
            Clay Clear's Software - Frames-Only Site

            Comment


            • #7
              No fear, we appreciate your watchfulness. Be careful out there.

              ------------------
              Tom Hanlin
              PowerBASIC Staff

              Comment


              • #8
                With the correct printer and W2K, the USB port can be accessed thru Power Basic for DOS.

                ------------------
                djthain
                djthain

                Comment


                • #9
                  Originally posted by djthain:
                  ...the USB port can be accessed thru Power Basic for DOS.
                  How? Would really appreciate info on this.


                  ------------------
                  There are no atheists in a fox hole or the morning of a math test.
                  If my flag offends you, I'll help you pack.

                  Comment


                  • #10
                    Some printers don't work because they are Windows only. I have used the HP 970cxi, which prints from both Windows 2000 and DOS. You have to know the DOS control codes for each printer, if you want something like landscape or portrait to work. W2K and some other operating systems have a parameter called Enable Printer Pooling in the Ports tab of the printer properties. When a USB cable is connected to the printer and computer, the USB port shows up along with LPT1 etc. With Enable Printer Pooling checked you will be able to select both USB and LPT1 at the same time, as port selections. The only problem I have is the Resume button on the HP 970cxi printer must be pushed after each report. It doesn't take any effort to do this routine as I have to reach for the paper anyway. I use the LPRINT statement to send control statements and print the reports.


                    ------------------
                    djthain
                    djthain

                    Comment


                    • #11
                      Thanks for all the help! For the record there are about
                      200 people in the USA who have my name. That's roughly
                      one in a million.
                      George

                      ------------------
                      puddin9
                      puddin9

                      Comment


                      • #12
                        Well, George, it looks like you really are 'one in a million' <IMG SRC="http://www.powerbasic.com/support/forums/smile.gif" ALT="smile">
                        regards,

                        ------------------
                        [email protected]
                        :) IRC :)

                        Comment


                        • #13
                          Who's to say that the president doesn't get tired of doing politics
                          all day and likes to sit down to a relaxing evening with PowerBasic? <IMG SRC="http://www.powerbasic.com/support/forums/smile.gif" ALT="smile">



                          ------------------
                          Gary Stout
                          [email protected]
                          [email protected]
                          Thanks,
                          Gary Stout
                          gary at sce4u dot com

                          Comment


                          • #14
                            you'd be surprised how many people are named "George" or "Bush". The Prez doesn't have a trademark on it
                            Not to mention the Bush family dog: "Spot."


                            MCM
                            Michael Mattias
                            Tal Systems Inc. (retired)
                            Racine WI USA
                            [email protected]
                            http://www.talsystems.com

                            Comment


                            • #15
                              http://www.powerbasic.com/support/addons http://www.powerbasic.com/support/addons/printers.asp

                              ------------------
                              How long is an idea? Write it down.

                              Comment


                              • #16
                                Thanks for the DOSPRINT plugs there, folks! That was much appreciated! <IMG SRC="http://www.powerbasic.com/support/forums/smile.gif" ALT="smile">

                                Originally posted by djthain:
                                Some printers don't work because they are Windows only.
                                These days, these kind of printers are the majority... but all is not lost... see below.
                                You have to know the DOS control codes for each printer.
                                That is one of the single biggest <U>problems</U> with DOS application programming -- every app needs to support 6 or more different "generic" printer types, and it's a constant battle to keep up with what works and what does not work, endless customer support enquiries asking why their new printer does not work with your software, etc. It's almost painful!

                                However, this problem is solved by one of the major features of my DOSPRINT utility - printer-independent printing.

                                That is, you don't need to know how the printer is attached or what language it uses (if any!), or even if it's Windows-only, color, dye or ribbon -- all you need is Windows 95 or better to be running, and the correct printer driver installed, and DOSPRINT takes care of the rest for you... your DOS app code needs only support a single set of Escape codes (based on Epson ESC/P and ESC/P2 codes). Also, you can print graphics too (ie, for letterheads, etc) from 6 different graphic file formats including JPG/BMP/TIF/PNG/TGA/etc. DOSPRINT also comes with the Print Preview window too.

                                In any case, you can download and try a fully-functional demo from www.dosprint.com

                                Regards,
                                Lance
                                Lance
                                mailto:[email protected]

                                Comment

                                Working...
                                X