Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

printing in quickbasic and windows NT

printing in quickbasic and windows NT

printing in quickbasic and windows NT

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!

RE: printing in quickbasic and windows NT

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.

RE: printing in quickbasic and windows NT

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

RE: printing in quickbasic and windows NT

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 ?

RE: printing in quickbasic and windows NT

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.

RE: printing in quickbasic and windows NT


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


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


--> It's a bird!  It's a plane!  No, it's an OS update patch! Ahh!! <--

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close