problem with JRXmlWriter.writeReport(...)

By: Dirk Rost - appshare
problem with JRXmlWriter.writeReport(...)
2003-11-23 07:42

I've some problems with the JRXmlWriter.writeReport(...)

I read the original with

File lvXmlTemplate = new File(lvSContext.getRealPath("/configuration/reports/" + "CoWebTemplate.xml"));
JasperDesign lvDesign = JRXmlLoader.load(lvXmlTemplate);

And that ist the source:

<reportElement mode="Transparent" x="0" y="0" width="782" height="50" forecolor="#00FF40" backcolor="#FFFFFF" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/>
<graphicElement stretchType="NoStretch" pen="Thin" fill="Solid"/>

Now i use JRXmlWriter to save it to another name, and here is the result:

<reportElement mode="Transparent" x="0" y="0" width="782" height="50" forecolor="#ff40"/>
<graphicElement pen="Thin"/>

Most attributes are missing and there occured an error for the color.

Any ideas? Thanks a lot


By: Teodor Danciu - teodord
RE: problem with JRXmlWriter.writeReport(...)
2003-11-28 13:46


In the XML output, all the attributes that have values
equal to the default values are missing.
This is for minimizing the output.

As for the color, there are two zeros missing,
but they are not significant
(they are removed from the left).

I hope this helps.
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 7 months ago

0 Answers:

No answers yet