Page 1 of 1

LPRINT COMMAND UNDER WINDOWS XP

Posted: Sun Jan 16, 2005 4:16 pm
by peter
LPRINT does not function when running QBASIC in XP environment .
Any help on this ?
Thanks

Posted: Sun Jan 16, 2005 4:37 pm
by Pete
LPRINT uses the parallel port interface (LTTP), and most printers that are sold these days use the USB port. If you're using a USB printer, you're out of luck. Try a parallel port printer if you have one, but I can't make any guarantees.

It also could be a DOS compatibility error with Windows XP. Windows XP is no longer fully DOS compatible, so the XP "Command Prompt" might be having trouble interfacing with parallel port on your computer. I'm sure there are very technical ways to get around this, but I'm not the right person to ask.

Good luck!

Posted: Sun Jan 16, 2005 5:34 pm
by MystikShadows
You might be able to make it work if you take out Print Spooling on the printer port it's on.....Also They sell USB to Parallel port connectors, you might be able to make it work this way.

Posted: Mon Jan 17, 2005 12:12 pm
by {Nathan}
I had this same problem :roll: The solution is very easy :D

1. Find your printer drivers (anywhere, check Windows Update)
2. Uninstall your current ones. :P
3. Reinstall, but make sure you configure it for DOS. It will probably ask you :o

And your done... (or are you :twisted: )?

The end...

? :evil:

Posted: Mon Jan 17, 2005 1:36 pm
by Z!re
Not all printers have drivers for DOS, infact, very few modernprinters do.

Mine doesent have drivers for anything earlier than windows 98SE, for example.

LPRINT issues.

Posted: Sun Jan 23, 2005 9:00 am
by UWLabs
Since most new printers are now USB only your choice like the others have said are limited. One choice of course would be to hook up and OLD printer port printer. (LPT1) - Obvious and well, then you need another printer.

A "work-around" is too "print" to a text file.
You can even force the text file to appear in Notepad afterwards, and optionally print from there.

Like this (after you make the file):

SHELL "notepad.exe c:\myfile.txt /p"

The only drawback is the user is left at notepad and has to close it and then click on the minimized program.

Hope this helps.