Forum OpenACS Q&A: Printing tickets from IE , HTML

Posted by Sergio Tardío on

I got one Epson TM_U220B printer to print tickets from my system that is a solution. I create a html-table with response.write(....) and then I call the "window.print();" with some jscript. It works but not as I wished, beacuse the size of the fonts. I have one styles.css file where I got this:

font-weight: normal;
font-size: 12px;
font-family: Arial,Verdana, Helvetica, sans-serif;

But the result is to big font, with low quality, and I can not set the size to 9 or 10 because it gets awful but if the size=12 then I can not print numbers greater than 99,999 beacuse it doesn't fit on the paper and get truncated!! something that i can not allow

How can I set this printer and still using html ?? How can I use some smaller fonts but visible??

THANKS IN ADVANCE!!! I really need some help on this matter


Posted by Ryan Gallimore on
Look into converting your HTML to PDF using HTMLDOC. This might be more suitable for printing.



Posted by Hamilton Chua on
Since you're printing, is your css file for all media ?
You can define whether a particular CSS is meant for screen, print or all.

I'm not sure if this is relevant to your problem but you might find this article useful