[comp.sys.apple] ImageWriter II tabbing

rich@pro-exchange.cts.com (Rich Sims) (11/18/88)

>I'm having trouble printing ASCII messages like those in this conference.
>Whenever these messages contain Ctrl-I characters (TABs), the text is
>*not* tabbed on my printer.

	-- text deleted --

>Why doesn't it work?

Mainly because it's wrong!  (Sorry about that -- I couldn't resist it!)

> 50 PRINT CHR$(27) CHR$(40),5,10,15,20,25,30,35,40,45,50, CHR$(46)

You need to send a series of 3-digit numbers, separated by commas, for
the firmware to recognize it.  The way you're doing it, the numbers are
not three digits long and the commas aren't going to the printer.

Try this instead:

50 PRINT CHR$(27) "(005,010,015,020,025,030,035,040,045,050.";

You need to use =3= characters for each column value, but you may
replace leading zeros with space characters.  Use the semi-colon at the
end of the line to suppress the carriage return.

Note that the commas only appear *between* column values... the string
starts with a left parentheses and ends with a period.  You can do the
same thing using the CHR$(n) function, but you'll have to send each
of the individual characters shown in the string above.

As a quick check, the string you send will consist of the leading escape
code, plus four characters for each tab you are setting, plus 1 additional
terminating character.

I hope this helps, and I hope you have better luck with your ImageWriter II
than I did -- mine is 18 months old, I've gotten three weeks of useful work
out of it, spent $150 on repairs, and have had it in two different dealers'
shops for a total of more than 4 months.  It's =still= in the shop!!  :-(

-Rich Sims-

UUCP: [ sdcsvax nosc ] !crash!pro-exchange!rich || pro-exchange: 305/431-3203
ARPA: crash!pro-exchange!rich@nosc.mil          ||  300/1200/2400/9600 (HST)
INET: rich@pro-exchange.cts.com                 ||     login = 'register'

"People will do strange and amazing things -- if you give them money!"