Compressed Text

Grace, Jim graceji@ccac-casc.on.ca
Wed, 30 Aug 2000 14:33:10 -0400


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.