1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Printing from DOS via XP

Discussion in 'Windows XP' started by noel stephenson, 2005/11/23.

  1. 2005/11/23
    noel stephenson

    noel stephenson Inactive Thread Starter

    Joined:
    2005/11/22
    Messages:
    2
    Likes Received:
    0
    Printinfg From DOS

    I'm using a Dell Dimension 2400 tower system running Windows XP, Service Pack2. I have a legacy programe (positively antedeluvioan) written in Basica, with the appropriate compiler loaded. The program directs the printer output to LPT1, to which is attached a Samsung ML1210 laser printer defined as the default printer. An Epson C86 is attached to a USB port. Neither printer is shared with any other computer or network.

    The program is basically a number-cruncher for low speed (model aircraft) aerodynamics and functions perfectly until I try to print out the results (the results are correctly displayed on the screen). The printer "wakes up ", buzzes for a while and then goes back to sleep without printing anything.

    This program has worked perfectly (and prints out) through 3.1, 95 and 98, why does it not work through XP and how can I fix it? Please remember my low intermediate status and keep it simple!

    Baffled of Northumberland

    AKA Noel Stephenson
     
  2. 2005/11/23
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,314
    Likes Received:
    252
    Have you ever printed to this printer with a DOS app? Some printers simply won't do it. Might look on their web site to see if there is any info.
     

  3. to hide this advert.

  4. 2005/11/23
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    Try 'Print to file' in the print function, and you will have to give the 'printout' a file name, and you must then remember the file location on the hard drive. It should have a .prn extension.
    Then, in the cmd or command prompt window, use the command
    copy [path]filename.prn prn. Of course the path is only necessary if you don't do
    cd [location of the .prn file] .

    Note: square brackets indicate optional parameters.
     
    Last edited: 2005/11/23
  5. 2005/11/23
    PeteC

    PeteC SuperGeek Staff

    Joined:
    2002/05/10
    Messages:
    28,896
    Likes Received:
    389
    As workaround try capturing the screen (Alt+Print Screen) and paste it into a Word document - or similar, and print that out.
     
  6. 2005/11/23
    Top Dog

    Top Dog Inactive

    Joined:
    2002/01/07
    Messages:
    102
    Likes Received:
    0
    It is my understanding that Microsoft made a decision to support only Visual Basic for Dos and later (Visual Basic for Windows, Visual Studio, etc.) when they brought out Windows 2000. This means that BasicaA, QuickBasic, Basic7 were basically left for dead as far as full compatibility support. There are several hacks in the 'wild' designed to be used as shells in which attempts were made to increase compatability. Try googling if you still want this. Of course, you can always set up a dual boot system with Win98 and XP and still run your old stuff on the Win98 side.
    I extensively written Basic code programs for my engineering jobs but eventually had to go and convert all my engineering apps into the Visual Studio packages. (I didn't know what hassle was until I started using Visual Basic 6. I am full-blown lost in the dot-net versions.)
    Sorry ... but .... it's probably better that the dead are buried. :(

    Good Luck
    Top Dog
     
  7. 2005/11/24
    noel stephenson

    noel stephenson Inactive Thread Starter

    Joined:
    2005/11/22
    Messages:
    2
    Likes Received:
    0
    Printing from DOS

    Thanks for all of the above tips. Progress so far is;

    a. Thanks to my whizz-kid son, I;ve already been using the screen capture/copy to Word system, which works, but is clumsy.

    b. XP obviously supports Basica with the compiler, because the program runs!

    c. It looks as if the problems lie with the printers. It took a lot of research before I got a definite answer that the Samsung ML 1210 (and all other Samsungs , as far as I can find out!) does NOT support DOS printing. Strike 1.

    c. Currently trying to find out if the Epson C86 will support DOS. The printer, although advertised as USB, does have a parallel port, so I'm going to try that next.

    d. Failing all the above, I still have an ancient Epson LX80 dot-matrix, which may do the job simply. Just takes up more room in my tiny study and would need a switch-over box so that I can continue using the Samsung Laser.

    e. This is all getting a bit out of hand for a program that I use infrequently - but IS important when I do use it! Purchase of new hardware or software would not be cost-effective for this infrequent use.

    Aren't computers wonderful? :( Will let you know how I get on.

    Thanks again

    Noel
     
  8. 2005/11/28
    Dcrypter

    Dcrypter Inactive

    Joined:
    2002/09/19
    Messages:
    158
    Likes Received:
    1
  9. 2005/11/28
    skeet6961

    skeet6961 Inactive

    Joined:
    2005/09/03
    Messages:
    522
    Likes Received:
    0
    shot in the dark = printer properties/advanced and set 'print directly to printer'

    if u'r basica program is outputting to a specific printer language, that may be u'r issue. a laser is not a dot matrix.


    another thought but not complete cuz my memory is bad ;)

    u COULD examine the c:\windows\system.ini file and insert a 'printers' section w/ a line setting a port up as lpt1.dos and then point the laser to that. it's the 'old' method of getting dos level progs to print to win printers and may not be applicable and certainly will be a hassle.

    if u'r really desperate, i can find some old docs on 'howto' and post em but ... it'll take me a while.
     
    Last edited: 2005/11/28
  10. 2005/11/28
    Top Dog

    Top Dog Inactive

    Joined:
    2002/01/07
    Messages:
    102
    Likes Received:
    0
    There is an 2K/XP hack called UserPort that allows old dos basic programs direct access to i/o ports. It defeats the built-in Microsoft device i/o protection in 2K/XP and supposedly, every dialect of basic (previous to VBDOS which doesn't need this) will print directly to a LPT connected printer. It may look a bit complicated to set up, but if you really insist on running your stuff in XP take a look here ..
    http://www.writelog.com/support/lpt_port_support_on_windows_nt.htm

    Good Luck and be careful with this ...
    Top Dog
     
  11. 2005/11/29
    sparrow

    sparrow Inactive

    Joined:
    2004/03/21
    Messages:
    2,282
    Likes Received:
    0
    I have printed in DOS and XP Pro with SP2 using the instructions given in my previous post on several occasions. No need for any other software. Use the Run window to call up cmd.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.