Why don't you look into using BIRT or Jasper Reports.
Much easier than hand crafting HTML.
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
date: Thu, 19 May 2011 11:52:09 -0700 (PDT)
from: Nathan Andelin <nandelin@xxxxxxxxx>
subject: Re: Printing advice
From: Jon Paris
What underlying converter are you using?
We wrote an interface for Flying Saucer, and another for PD4ML. It takes some research and experimentation to discover what may cause a converter to fail, but it get's much easier after you come up with your own templates that work.