Page 1 of 1

Printing

Posted: Mon Sep 16, 2002 7:26 am
by BrianStorm83
Ok i am using the Qbasic verison 4.5 and i want to know how i can print when i run a program.  I can print my code but i don't know how to print the text after i run the program. anyone help?

Re: Printing

Posted: Sun Sep 29, 2002 12:22 pm
by pebe
Use the LPRINT statement.

Re: Printing

Posted: Sat Nov 16, 2002 5:06 pm
by Guest
The LPRINT statement should work (just use it the same way you would use PRINT). However, I've been having some problems with it. On my old computer (Win 3.1, DOS 6.22) it works as it should, but on my new computer (Win 98), it does not work at all. I'm not sure why that is.

Re: Printing

Posted: Fri Feb 28, 2003 3:11 am
by Guest
On setup tell it you'll be printing DOS.   Also
this works great.


   DATAFILE$ = "TEST.TXT"
   DS$ = "start/m wordpad /p " + DATAFILE$
   SHELL DS$


jal