Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2.programmer > #874 > unrolled thread
| Started by | nootrac90 <nootrac90@gmail.com> |
|---|---|
| First post | 2013-09-22 12:29 -0700 |
| Last post | 2013-09-23 13:20 -0700 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.sys.apple2.programmer
ImageWriter II Printing Control Codes? nootrac90 <nootrac90@gmail.com> - 2013-09-22 12:29 -0700
Re: ImageWriter II Printing Control Codes? "Bill Buckels" <bbuckels@mts.net> - 2013-09-22 19:31 -0500
Re: ImageWriter II Printing Control Codes? Hugh Hood <hughhood@earthlink.net> - 2013-09-22 20:33 -0500
Re: ImageWriter II Printing Control Codes? nootrac90 <nootrac90@gmail.com> - 2013-09-23 13:20 -0700
| From | nootrac90 <nootrac90@gmail.com> |
|---|---|
| Date | 2013-09-22 12:29 -0700 |
| Subject | ImageWriter II Printing Control Codes? |
| Message-ID | <e9ecd50e-6290-4528-8b92-ec120c2d1da6@googlegroups.com> |
Hi, I'm trying to write a program to print a report on an Apple ImageWriter II printer. I want the program to use a smaller (17 cpi) font in order to print more than eighty columns on my eight inch wide paper. What I have managed to do is switch to the smaller font, but then the printout is only 5inches wide and wraps at eighty columns and continues on the next line. I wrote the printout first in ZBasic and then double checked by writing it in AppleSoft with the same results. If anybody can help me with this I would appreciate it. Thanks Nootrac90 (Daily Apple)
[toc] | [next] | [standalone]
| From | "Bill Buckels" <bbuckels@mts.net> |
|---|---|
| Date | 2013-09-22 19:31 -0500 |
| Message-ID | <l1o25j$e3l$1@speranza.aioe.org> |
| In reply to | #874 |
"nootrac90" wrote: >I want the program to use a smaller (17 cpi) font in order to print more >than eighty columns on my eight inch wide paper. What I have managed to do >is switch to the smaller font, but then the printout is only 5inches wide >and wraps at eighty columns and continues on the next line. Is this what you "managed" to did? See below. You didn't say... If you don't post the code for review it's hard for someone to spot the bug... most would say it's impossible... 130 PRINT ESC$; CHR$(81): REM ULTRACONDENSED 140 PRINT "NO BOLD, NO UNDERLINE FOR AN ULTRACONDENSED FINISHED" http://www.classiccmp.org/cini/pdf/Apple/Apple%20Imagewriter%20II.pdf Appendix A Page 31
[toc] | [prev] | [next] | [standalone]
| From | Hugh Hood <hughhood@earthlink.net> |
|---|---|
| Date | 2013-09-22 20:33 -0500 |
| Message-ID | <CE65047E.CDAF%hughhood@earthlink.net> |
| In reply to | #874 |
Nootrac90, I'm guessing that you're using this with a Super Serial Card in normal 'printer' mode (jumper block pointed down toward 'TERMINAL'/ Dip 1-5 to 'OFF' / Dip 1-6 to 'ON') on a II+ or IIe, or maybe with a IIc on Port 1. Is that correct? This almost sounds like the serial firmware is sending a carriage return after column 80 and thus causing your text to wrap prematurely, although that is more common with a parallel interface than with a serial interface, since the <ctrl-I>C (column) command has to be explicitly invoked on a serial interface for this to come up at all. Anyway, to rule out the serial card as the source of the problem, try sending the following serial firmware command at the start of your printout (after the PR#x) to allow up to 255 characters per line: <ctrl-I>255N If this is indeed the issue, you're program will need to be responsible for sending the carriage returns, or, if you have a predetermined column number in mind, just send: <ctrl-I>xN (where 'x' is the number of columns you want) If not, I'd suggest using the link Bill gave to read the IWII manual and see it you've got a DIP switch on the printer set to cause text to wrap automatically at 80 columns, and then see if the IWII has a command to override it. Hugh Hood in article e9ecd50e-6290-4528-8b92-ec120c2d1da6@googlegroups.com, nootrac90 at nootrac90@gmail.com wrote on 9/22/13 2:29 PM: > Hi, > I'm trying to write a program to print a report on an Apple ImageWriter II > printer. > I want the program to use a smaller (17 cpi) font in order to print more than > eighty columns on my eight inch wide paper. What I have managed to do is > switch to the smaller font, but then the printout is only 5inches wide and > wraps at eighty columns and continues on the next line. > I wrote the printout first in ZBasic and then double checked by writing it in > AppleSoft with the same results. > If anybody can help me with this I would appreciate it. > Thanks > Nootrac90 > (Daily Apple)
[toc] | [prev] | [next] | [standalone]
| From | nootrac90 <nootrac90@gmail.com> |
|---|---|
| Date | 2013-09-23 13:20 -0700 |
| Message-ID | <3d77b1a6-7ee6-4903-a573-5ad4d11591a1@googlegroups.com> |
| In reply to | #874 |
Thank you both, Bill Buckels and Hugh Hood. I'm sorry I didn't say, but I am using an Apple //c and an ImageWriter II printer. Using the information you gave me and pointed me too I was able to achieve my goal. I'm writing a report subroutine and I wanted to print the title in the larger font (9 CPI) and the body in a smaller font (17 CPI). I printed a chr$(9);"255N" after switching to the printer with a pr#1 and by adding a print at the end of each line to manually end the line report comes out quite nicely with 136 characters width. Thank you again. On Sunday, September 22, 2013 3:29:31 PM UTC-4, nootrac90 wrote: > Hi, > > I'm trying to write a program to print a report on an Apple ImageWriter II printer. > > I want the program to use a smaller (17 cpi) font in order to print more than eighty columns on my eight inch wide paper. What I have managed to do is switch to the smaller font, but then the printout is only 5inches wide and wraps at eighty columns and continues on the next line. > > I wrote the printout first in ZBasic and then double checked by writing it in AppleSoft with the same results. > > If anybody can help me with this I would appreciate it. > > Thanks > > Nootrac90 > > (Daily Apple)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.sys.apple2.programmer
csiph-web