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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing in quickbasic and windows NT 1

Status
Not open for further replies.

queANDvisual

Programmer
Aug 29, 2005
2
0
0
BE
Hello,
I want to print in quickbasic on my computer (windows NT) but it doesn't work.I read a thread about it for windows XP, but it isn't very helpfull.
Can someones help please?
Thank you!
 
It's because QuickBasic is a DOS program and outputs to the printer with characters in ASCII. Printers then used their inbuilt fonts to print out in alpha/numerics. Most (all?) modern printers contain no character fonts - they only handle graphics streams.

I had the same problem running Quickbasic programs under Windows XP. I overcame the problem by using an excellent program called 'DOSprn' that does the translation.

You can get a free download of DOSprn. Just Google for it.
 
You can also connect lpt1 etc. with the use of a net share

In a dos box type in net use ?

This will show you how to set up a printer depending on you circumstances. This will allow you to print to any printer on your network.

David Paulson

 
I have a similar question.

I have an old ms-dos program that connects to another
computer in pcterm terminal emulation. The trouble is,
my modem is a pci as com3 but not the traditional com3
location or interrupt that ms-dos would expect.

Is there a net use command syntax that I could use to
"fool" the program to use say com2 instead and make it
think it was accessing the modem at the 2f8 location when it's really accessing it at FF8F0000 and interrupt 18 ?


 
I guess not. I see that net use is for disk drives and LPT
ports. That's all I can see that it's used for.
 
queANDvisual,

If format is not all that important and you have a default printer then you can try something like this:

Code:
CLS
PRINT "type in something and press ENTER"
PRINT
LINE INPUT Temp$
'--must have a default printer already assigned
'--through Window's Control Panel.
OPEN "\PrintMe.txt" FOR OUTPUT AS #10
PRINT #10, Temp$
CLOSE
Temp$ = "notepad.exe /p \PrintMe.txt"
SHELL Temp$
PRINT
PRINT "Please check your printer"
PRINT
SLEEP 5
KILL "\PrintMe.txt"
END

--MiggyD

--> It's a bird! It's a plane! No, it's an OS update patch! Ahh!! <--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top