Quantcast
Channel: Cemetech
Viewing all articles
Browse latest Browse all 75829

General Programming :: RE: [Java] Printable Reports

$
0
0
Author: AHelper
Posted: 14 Oct 2012 06:44:30 pm (GMT -5)

*bump*

So, I am trying to get java to print out HTML. So far, I am doing that by using a JEditorPane. Now, I need to generate a header block for a report that consists of a table with 3 cols and 2 rows. My current HTML is this:

Code:
<html><body><table border="1" style="border: blue solid 1px;" cellspacing="0" cellpadding="0" ><tr><td>this is a cell</td></tr></table><br /></body></html>


On chrome, this is ok. From java, it ignores CSS for the border in JRE6, and partially uses it in JRE7. The problem is that it sets the outer border as a semi-solid border (the corners are torn) and has a black inset border (basically 2 borders on the table).

Google doesn't help with HTML in java. Does anyone know how to get standard-compliant HTML rendering in java?
_________________
I sleep under a pillow and stick my tongue out at you! °ᴥ°


Viewing all articles
Browse latest Browse all 75829

Latest Images

Trending Articles



Latest Images