Print a checkbox in Quiz

Darren Reely darren.reely@latticesemi.com
Fri, 21 May 2004 10:16:14 -0700


Beyond Tracy's suggestion, you would need to send codes for the printer 
to draw the box, or create another file the printer would understand 
with the encoded box.

Last year we had the requirement to display graphics on what is your 
typical ASCII text Quiz report. The way I resolved it was to alter the 
report slightly with hints to guide a Perl program in converting the 
report to postscript. The EPS graphics are embedded into the postscript 
and the hints tell which graphic should be used where.

For archiving and e-mailing use we use Ghostscript to convert the 
postscript file to a PDF. PDF is great because it is viewable on so many 
platforms and gives a consistent output. When the user requests the 
report be printed, we send the postscript file directly to the Unix 
printer queue.

I wouldn't suggest this for simple things because it is complicated. I 
had to learn a bit about postscript and figure out offsets for the given 
font used. The whole thing is a bit sensitive to changes. So it takes a 
little extra TLC when making changes.

I had considered Viet's suggestion, but my needs were more complicated 
than that.

My director was surprised when he didn't have to tell our internal 
customer that it couldn't be done. The unusual challenges was 
satisfying. I guess that is why I've type so much here..

Darren

Alicia Tauscher wrote:

> Hi,
>
> Does anyone have an idea for printing a checkbox on a quiz report?
>
> Alicia