For our project, we have two methods.
When a user generates single bill we use the browser to print it. The
browser handles everything.
When we need to do bulk printing, the stored procedure in database
generates the bills as text files in a temporary directory. The text
files are printed with a Java servlet in the background. Actually, once
the text files are generated any method can be used to print them. The
files are deleted once the printing is finished.
It works fine for us as we do not have any graphics or fancy fonts in
our bill. If you want to use graphics and fonts may be you could try
generating pdfs and getting another program to print it?
Of course, there is still the option of writing your own print engine in
Java using Graphics2D.
Ashish Shrestha
http://headlines.sourceforge.net
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets