Compressed Text

Pickering, John (NORBORD) PICKERIJ@norbord.com
Wed, 30 Aug 2000 14:53:31 -0400


Jim

I think the idea of a simple "compress ON/OFF" switch is a bit simplistic
today. In the ancient days of HP2932 impact printers (when Quiz was born)
with a couple of fonts and 3 sizes (compressed, normal, expanded) you could
do things this simply. But with newer LaserJets (like the 8000) you have a
much richer set of fonts and nearly all of them are scalable. You'd be
better off explicitly coding the PCL for the font and size you want for your
"compressed" text and another for the "regular" text. Then use these 2
strings as the ON and OFF switches respectively. The printer will happily
print a list of all its fonts and the PCL needed to invoke them.

Regards,
JWP

> -----Original Message-----
> From:	Grace, Jim [SMTP:graceji@ccac-casc.on.ca]
> Sent:	Wednesday, August 30, 2000 2:33 PM
> To:	'powerh-l@lists.swau.edu'
> Subject:	Compressed Text
> 
> I am trying to compress the text in a quiz report to print out on an HP
> laser jet 8000N.  I am trouble getting the on and off codes to work.  I
> have
> an example from Cognos on how to do it.  Has anyone been successful with
> this.
> 
> Please let me know.
> 
> Thanks
> 
> The example below should cause a compressed font to be used by th printer.
> 
> Quiz 
> 
> >DEF escn int*1 = 27; 
> >def esc char*1 = char(escn)[2:1]; this will send the Esc sequence to the
> printer
> >def COMPRESSION  char*2 = esc + "<on code>"; see printer manual for this
> code
> >def COMPRESSOFF char*2 = esc + "<off code>"; see printer manual for this
> code
> >REPORT COMPRESSION  "Compressed" COMPRESSOFF "NOT Compressed"
> 
> If this works, the string,"compressed", should appear in small fonts.
> 
> If it does not then the escape sequence code selected is wrong for the
> printer. Each printer has its own set of printer control code sequences.
> Refer to your printer manual or call the manufacturer/vendor.
> 
> If it is necessary to have the page headings compressed, add the
> COMPRESSION
> item to the beginning of the page heading, or to the initial page heading.
> Turn off the compression setting sent to the printer, by reporting the
> COMPRESSOFF item in the final footing of the report.
> 
> 
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.