Printing ASCII characters

Discuss whatever you want here--both QB and non-QB related. Anything from the DEF INT command to the meaning of life!

Moderators: Pete, Mods

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

Printing ASCII characters

Post by moneo »

I have a calendar printing progam written in Quickbasic.
To make the boxes around each day I use chr$(179), chr$(196) and chr$(205).

The program works fine and prints the calendar to an attached printer, printing directly from the program with LPRINT statements. It also works fine printing the calendar to the screen.

Well, my printer is now broken, and since I hardly do any printing, I haven't bought a new one.

I modified the program to print the calendar to a file using a PRINT #1 for each line. I then gave the file to a friend for printing. All those characters used for printing boxes came out as garbage. I tried with several other friends. Some used WORD and PDF, but the problem was the same.

I would appreciate it if any of you guys have some suggestions for printing this calendar to a printer.

Thanks in advance,
Moneo
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Post by burger2227 »

Most Windows programs cannot read the ASCII characters correctly. Notepad won't do it either.

Your friend could try setting the USB printer properties/advanced/print processor from LEMF to Text.

There is also a way to send output from the LPT port to a USB printer using the NET VIEW and NET USE. LPRINT will work then using the USB printer settings above.

Or try asking Don Smith. AKA Marine Don at his site:

http://www.smithselfgen.com/QuickBasic/QuickBasic.Htm

He uses a lot of ASCII stuff including calendars. Sometimes he visits the Network54 QB Forum too.

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

Thanks alot, Ted.

I'll ask my friend to set LEMF to text, like you said.

Best regards,
Moneo
User avatar
burger2227
Veteran
Posts: 2466
Joined: Mon Aug 21, 2006 12:40 am
Location: Pittsburgh, PA

Sooner or later you will need a printer

Post by burger2227 »

You can use LPRINT with a USB printer. For info go to this Link:

http://www.network54.com/Forum/171757/m ... n+XP+or+NT

Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
moneo
Veteran
Posts: 451
Joined: Tue Jun 28, 2005 7:00 pm
Location: Mexico City, Mexico

Post by moneo »

Thanks again, Ted.

My friend doesn't have QB, so I'm going to ask him to try your first suggestion above.

Regards,
Moneo
Post Reply