Hi.
I've made a report with jasperreports 3.0 and used jasperreports flash viewer to show it in a flex application.
To do that i've exported my report in a String filled with report XML and passed it to the viewer
My report has got a grid. I use "Pen tags" to draw cell borders. Below an example.
<topPen lineWidth="0.25" lineStyle="Solid" lineColor="#000000"/>
I've no problems except for the cells where there's no text or text is null. In that cases my flash viewer doesn't draw borders.
Someone can help me?
Thanks
1 Answer:
i got it!!
there's an error in TextDrawer.as file.
At line 82 there's :
if (!textElement.content || StringUtil.trim(textElement.content).length == 0)//FIXME check this
{
return;
}
When text is null or empty, textControl is never added to canvas...
So i changed in
if (!textElement.content || StringUtil.trim(textElement.content).length == 0)//FIXME check this
{
context.canvas.addChild(textControl);
return;
}
and it works..
Bye