Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing the program output to a network printer in WinXP

Status
Not open for further replies.

ctbari

Technical User
Dec 26, 2002
1
US
I work for a small community college in CT. We are upgrading the room that QBASIC is taught in from Win98 to WinXP pro. I can run QB in XP, I can print the program itself to the network printer, but when I can not print the program output. I have tried alt-print scrn, shift-print scrn, i have tried using the net use command. Nothing works. I have tried various configurations for the printer itself. I need the solution to be as simple as possible, preferably something that I can just set up and not have to tell the instructor about. (Don't ask, the situation is complicated)

Thanks for the help!
 
Forgive me for saying it, but since qbasic 7.1 was originally made for dos or Windows 3.1, it was stupid to install XP. If the only reason you use the computers is for qbasic, downgrade.
I think it would be hard to do what you want without some heavy low level programming. Qbasic was not designed to work over networks. Did it work when you had windfows 98?
Incase you my not know, here are two methods to print to a printer. They first is more compatible.

OPEN "LPT1:BIN" FOR OUPUT AS #1
PRINT #1, A$ 'The varible you want to print.
CLOSE #1

Way two:
LPRINT A$ 'The varible you want to print.


Hope that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top