Mail Archives: djgpp/1999/06/24/21:55:17
Thank you again Eli
I got the printer worling fairly well but I still am having
trouble with spacing. I have tried several combinations but had no luck.
I am trying to set the spacing for different size fonts, but
cannot get the printer
to take them. the below commands are both decimal and hex.
n/72 inch paper spacing.
Name: ESC A n
Dec. 27 65 n
Hex. 1B 41 n
fprintf(stdprn, "\x1B\x41");
Its the n part of the command that throws me. I have tried %i,
%c, %h .
example:
fprintf(stdprn, "%i" "SeventySecond");
The n spacing in decimal goes from 0 to 255.
Again I would appreciate any help you could give me on
this
Thank you
Vince McCarthy.
On Tue, 22 Jun 1999 09:19:37 +0300 (IDT) Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> writes:
>
>On Mon, 21 Jun 1999, Vince McCarthy wrote:
>
>> When I set an operation such as proportional printing with a
>0x01
>> It requires a hex 0x00 to release the proportional printing, I
>cannot
>> get the printer to release the proportional printing unless I
>substitute
>> an 0xbd value for the 0x00 value.
>
>That's because you send the binary zero as part of a string. Strings
>in C are terminated by a zero, so fprintf simply ignores the zero
>byte. You need to produce it like this:
>
> fprintf (stdprn, "%c", '\0');
___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.
- Raw text -