Bolding and Italics in Powerhouse reports
Whittall, Conrad
Conrad.Whittall@Cognos.COM
Thu, 28 Jun 2001 19:17:13 -0400
An approach that many customers have taken is to embed the appropriate
escape sequences needed by their particular printers into their QUIZ
reports. Printer control code sequences are obviously printer (or rather
printer control language) dependent. Check the printer's manual for the
correct escape sequences, or contact the manufacturer (or check their web
site).
Here is an example of QUIZ code using escape sequences:
DEF escn INT*1 = 27;
DEF esc CHAR*1 = CHAR(escn)[2:1] ; this will send the Esc character 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.
Note that the substring taken of the CHAR(escn) function in order to get a
character item that contains the "escape" character depends the specific
hardware architecture of your system...I can't remember for sure, but for
Alpha-based systems it might be [1:1].
Best regards,
Conrad
Conrad Whittall
Marketing Manager, Application Development Tools
Cognos Incorporated, 3755 Riverside Drive, Ottawa, Ontario, K1G 4K9, Canada
Developer productivity never goes out of style!
For details of the Cognos PowerHouse family of high-productivity
development tools for Web, Windows and terminal-based business
applications, and to request your own free copy of our new product
demo CD, simply click here http://www.cognos.com/powerhouse.
-----Original Message-----
From: Cunningham, John [mailto:jcunningham@eds.com]
Sent: Thursday 28 June 2001 17:51
To: 'powerh-l@lists.swau.edu'
Subject: Bolding and Italics in Powerhouse reports
Hi to all,
My name is John Cunningham and I am part of a project team using Powerhouse
8.20 for openvms on an Alpha machine. We need to
add Bolding and Italics to our reports and were wondering what approach
other developers have used to accomplish this. We have a
basic understanding of how to accomplish this from reading the manuals and
from talking to COGNOS. Any suggestions and/or examples would be greatly
appreciated!
Regards, John
John Cunningham
EDS I-Solutions NE Region
5 Clock Tower Place
Suite 300
Maynard Ma. 01754
* (781) 487-1357
Fax (781) 487-1626
* Jcunningham@eds.com