QB Coding and Printer questions

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
User avatar
Pete
Site Admin
Posts: 887
Joined: Sun Dec 07, 2003 9:10 pm
Location: Candor, NY
Contact:

QB Coding and Printer questions

Post 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
User avatar
Brandon
Coder
Posts: 47
Joined: Sat Nov 19, 2005 9:24 pm
Location: NY
Contact:

They Allready did!

Post by Brandon »

moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

Hesham/Moro145,

Do you expect better answers by asking the same questions twice?
*****
If you are ahead of me, lead.
If you are behind me, follow.
If you are not doing anything,
Get out of the way.
User avatar
Zim
Veteran
Posts: 98
Joined: Mon Dec 05, 2005 4:31 pm
Location: Wisconsin, USA
Contact:

Printing from DOS to a Network Printer

Post 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.
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
Post Reply