Can you print a picture in quiz?
Walker, Chris
ChrisWalker@tateandlyle.com
Wed, 29 Mar 2000 10:57:56 +0100
You can use Quiz to send PCL or HPGL instructions to the printer. The
easiest way to create the picture is to load your bitmap or whatever into a
program that will convert to PCL/HPGL. I have used Corel Draw, but there
are probably others.
Getting Quiz to output the picture is more of an issue, because Quiz has
never heard of non-printing characters and automatically prints a newline
when it thinks you've printed enought to fill a line. The cleanest solution
is to load the picture into a PCL macro before the Quiz report runs, so that
Quiz only needs to send the short "execute macro" instruction to print it.
Better still, you can specify to PCL that the macro be automatically
executed when a new page is initialized. I use VMS, so I load the picture
as a page setup module (a predefined sequence that VMS extracts from a
library and sends to the printer). No doubt there similar facilities on the
HP3000.
The sequence that prints the picture should end with an instruction to send
the printer's cursor to the position on the page where Quiz thinks it is.
The easiest solution is to print the picture first, then home the cursor.
I've asked on occasion for an enhancement to Quiz that would allow the print
width of a report item to be specified. For example:
;A long escape sequence that puts the cursor back where it started
def escape-sequence char*80 width 0 = esc + "123456" .....
;A 4-character heading that advances the cursor 8 positions
def wide-heading char*12 width 8 = esc-double-width + "HEAD" +
esc-normal-width
Chris Walker
Tate & Lyle
London
> -----Original Message-----
> From: Kirk, Dean [mailto:Dean.Kirk@COGNOS.com]
> Sent: Wednesday, March 29, 2000 8:52 AM
> To: 'Abraham Zwygart'; powerh-l@lists.swau.edu
> Subject: RE: Can you print a picture in quiz?
>
>
> Hi Abraham,
>
> It is possible, but very messy. I have done this type of
> thing using PCL on
> a HP Laserjet. It will work on any PCL compatible printer.
> You need the
> picture loaded to a cartridge or SIM card as a font. Turn
> that font on and
> print characters which will be replaced by the picture. You
> will certainly
> need a PCL manual to do this. I used PCL to make Quiz
> reports "pretty"
> before Impromptu was around. It is a good way to use Quiz
> for large and
> small font, bold, underline and pictures on one report.
>
> There is a company called Red Titan here in the UK that scans
> images onto
> font cartridges and SIM cards.
>
> Failing that you have the keyboard characters to make a crude picture.
>
> I hope this helps.
>
> Dean
>
> Dean Kirk
> Cognos Limited
> email: dean.kirk@cognos.com
>
> -----Original Message-----
> From: Abraham Zwygart [mailto:azwygart@anodizing.com]
> Sent: 29 March 2000 00:49
> To: powerh-l@lists.swau.edu
> Subject: Can you print a picture in quiz?
>
> Hi all,
>
> Am on a HP3000 os v6.0 PH 8.19.c1
> Can I print a picture in quiz report? If I can how?
>
> Abraham Zwygart
> Anodizing Inc.
> Senior Programmer Analyst Email: azwygart@anodizing.com
>
> _\\///_
> (' o-o ')
> _________________________ooOo_( )_oOoo_________________________
> The thoughts, comments, and opinions expressed herein are mine
> and do not reflect those of my employer(s), or anyone else.
> _________________________oooO_____Oooo_________________________
> ( ) ( )
> \ ( ) /
> \_) (_/
>
>
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> = = = = = = =
> 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.
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
> = = = = = = =
> 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.
>
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
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.