Discussion:
How to print in BASIC?
(too old to reply)
fidik
2003-09-15 19:18:20 UTC
Permalink
Found an old programme from Proprinter days, installed GWBASIC from DOS4,
programme is really useful to me, the only problem is that when it encounters
LPRINT statement it comes back with "Device fault".

Any help on how to solve this would be appreciated.
Martin Trump
2003-09-15 20:03:14 UTC
Permalink
Post by fidik
Any help on how to solve this would be appreciated.
Printer.Print maybe?

Regards.
--
Martin Trump
the Wiz
2003-09-15 22:47:21 UTC
Permalink
Post by fidik
Found an old programme from Proprinter days, installed GWBASIC from DOS4,
programme is really useful to me, the only problem is that when it encounters
LPRINT statement it comes back with "Device fault".
Any help on how to solve this would be appreciated.
Do you have a "standard" printer attached to the parallel port? If the printer
is on a USB port or possibly if the printer is a "Windows only" printer then you
will likely get a "device fault" because the device doesn't respond as expected.

More about me: http://www.jecarter.com/
VB3/VB6/NSBasic Palm/C/ PowerBasic source code: http://www.jecarter.com/programs.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter atat mindspring dotdot com. Fix the obvious to reply by email.
fidik
2003-09-16 11:25:04 UTC
Permalink
Post by the Wiz
Post by fidik
Found an old programme from Proprinter days, installed GWBASIC from DOS4,
programme is really useful to me, the only problem is that when it encounters
LPRINT statement it comes back with "Device fault".
Any help on how to solve this would be appreciated.
Do you have a "standard" printer attached to the parallel port? If the printer
is on a USB port or possibly if the printer is a "Windows only" printer then you
will likely get a "device fault" because the device doesn't respond as expected.
It is on USB port. Is there anything that I can do?
the Wiz
2003-09-16 17:11:04 UTC
Permalink
Post by fidik
Post by the Wiz
Post by fidik
Found an old programme from Proprinter days, installed GWBASIC from DOS4,
programme is really useful to me, the only problem is that when it encounters
LPRINT statement it comes back with "Device fault".
Any help on how to solve this would be appreciated.
Do you have a "standard" printer attached to the parallel port? If the printer
is on a USB port or possibly if the printer is a "Windows only" printer then you
will likely get a "device fault" because the device doesn't respond as expected.
It is on USB port. Is there anything that I can do?
You might try changing the printer setup in Windows to add "Print from DOS". If
that doesn't work, your could change the program to send its output to a file
(every LPRINT statement will have to be changed to a PRINT #x, where x is the
number of the output file), then print that file from Windows using Notepad or
Wordpad.

If the program uses any printer control codes (for things like graphics
characters or bold or compressed print), then you will also have to remove those
codes as the current printer probably won't understand them.

More about me: http://www.jecarter.com/
VB3/VB6/NSBasic Palm/C/PowerBasic source code: http://www.jecarter.com/programs.html
Drivers for Pablo graphics tablet and JamCam cameras: http://home.earthlink.net/~mwbt/
johnecarter atat mindspring dotdot com. Fix the obvious to reply by email.
Loading...