Page 1 of 1

QB Coding and Printer questions

Posted: Tue Dec 27, 2005 11:54 am
by Pete
I'm sure you guys can help Hesham:
Good Morning..

i'm working in updating project was developed in qbasic scince 1988 ,i face many problems understanding the code statments such as:

dh=cid-rod : dh2=cid*cid-rod*rod

y(1)=pvd:y(2)=od
IF ABS(y(1)-pvd)>10 GOTO 100

other mater is how to make the program prints the output to a usb printer
attached in a network or directly to my computer ?
and how to make the output saved to excell sheet ,if possible?

thanks alot for your worthly help
_________________
hesham hafez

They Allready did!

Posted: Tue Dec 27, 2005 1:30 pm
by Brandon

Posted: Tue Dec 27, 2005 3:01 pm
by moneo
Hesham/Moro145,

Do you expect better answers by asking the same questions twice?
*****

Printing from DOS to a Network Printer

Posted: Mon Jan 02, 2006 12:20 pm
by Zim
Printing from DOS to a network printer is easy with the Windows "Net use" command. Before printing (via a batch file or something) issue a "net use" command like:

Code: Select all

Net Use lpt1: \\servername\printername
I've noticed on my network, it works best to delete it first, even if it doesn't already exist. I use:

Code: Select all

Net Use lpt1: /delete
You can check to see if the printer (device mapping) exists with:

Code: Select all

Net Use
with no parameters.