Home
The Toolkit for Online Communities
15936 Community Members, 0 members online, 2269 visitors today
Log In Register

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

OpenACS Home : Forums : OpenACS Q&A : Printing tickets from IE , HTML

Icon of Envelope Request notifications

+
Posted by Sergio Tardío on
Hi

I got one Epson TM_U220B printer to print tickets from my system that is a asp.net 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

Sergio

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

Regards,

Ryan

+
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

http://alistapart.com/articles/goingtoprint/