----- Original Message ----- 
From: "P Witte" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 17, 2006 6:51 PM
Subject: Re: [ql-users] waiting for QPC print - meanwhile


> Bill Waugh writes:
>
> <>
>> My Archive prg is as below
>>
>> proc label
>>
>> lprint
>> lprint
>> lprint
>> lprint '                      '+name$
>> lprint '                      '+adda$
>> lprint '                      '+addb$
>> lprint '                      '+addc$
>> lprint
>> lprint
>> lprint ( I need chr$ for ff in here right )
>> spoolon '_par' : spooloff
>>
>> looking at Windows printer queue it looks like nothing is getting sent to
>> the printer at all, I've been up in the loft for my manuals - can't find
>> the
>> Ql one ( I must have at least three somewhere ) and what is the chr$ for
>> FF
>> I've forgotten ( 36 )
>
> FF = 12, but in Archive you need to precede non-printables with a chr(0).
> Thus form feed becomes
>
>    lprint chr(0)+chr(12)
>
> Hmm, on checking wot I rote just now, it appears that nowadays just
>
>    lprint chr(12)
>
> will do the trick
>
> Thus:
>
>    proc label
>        spoolon '_par1'
>        lprint
>        lprint
>        lprint
>        lprint '                      '+name$
>        lprint '                      '+adda$
>        lprint '                      '+addb$
>        lprint '                      '+addc$
>        lprint
>        lprint
>        lprint chr(12)
>        spooloff
>    endproc
>
> Ive also got the following "post amble" code in my printer driver (ESC/2):
>
> 12,27,"@"
>
> Which means that I dont explicitly have to send an FF, as Archive sends 
> this
> as part of the spooloff.
>

Thank you Per - it works - at last, but just so I don't get carried away the 
printer is out of ink

All the best - Bill 

_______________________________________________
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Reply via email to