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
Printing ASCII characters
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
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
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
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
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Sooner or later you will need a printer
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
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
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