Adding Line tag to report

By: Muralidhar bp - pmurli
Adding Line tag to report
2003-02-12 03:06
Hello,

My xml report is some thing like this........

<columnHeader>
<band height="54">
<staticText>
<reportElement x="0" y="0" width="150" height="10" mode="Opaque"/>
<textElement textAlignment="Left">
<font reportFont="Gothic_Bold" size="14"/>
</textElement>
<text>CUSTOMER ID</text>
</staticText>
<staticText>
<reportElement x="150" y="0" width="365" height="10" mode="Opaque"/>
<textElement textAlignment="Left">
<font reportFont="Gothic_Bold" size="14"/>
</textElement>
<text>NAME</text>
</staticText>
<line direction="TopDown">
<reportElement x="0" y="50" width="515" height="2"/>
<graphicElement pen="2Point"/>
</line>
<band>
<columnHeader>

But in the html screen I am not able to get the line.
My requirment is, I want a single line to be displayed on the screen after the column header, but I am not able to get.
Please help me out, Thanx in advance

Rgds
Murli




By: Thomas Richter - hornet_f4c
RE: Adding Line tag to report
2003-02-13 15:16
Hmmmm... let's try to think about.
After the header, huh ? Then I think it should be a vertical line, shouldn't it ? I would suggest to leave that direction ="topDown" away.
Further you can choose a color for the line - maybe it's just you background color the same as the default line color.

Try it like this:
<line>
<reportelement x="0" y="50" width="515" height="2" foreColor="#000000"/>
<graphicElement stretchType="noStretch" pen="2Point"/>
</line>

It works for me with pdf output. Never tried it in html, though.

Also make sure you do not accidently paint another element over the same area...

Hope you get it solved.
cya




By: Muralidhar bp - pmurli
RE: Adding Line tag to report
2003-02-13 20:22
Hello,

Thanx for the reply, I want horizontal lines .
My report looks something like this...

col1 col2 col3 col3
-------------------------------------------------
1 1 1 1
1 1 1 1
1 1 1 1
1 1 1 1
-------------------------------------------------
total xxxxx

I want the line after the column header and before the column footer.
My report are in html.

Thanx
Murli




By: Thomas Richter - hornet_f4c
RE: Adding Line tag to report
2003-02-14 06:38
Arrrg . Silly I am !! Of course HORIZONZTAL lines. That's what I meant. Dunno why I wrote vertical.

The example above should give ya a horizontal line.
Try to render the report into a pdf - if it works there, but not html, you at least can confirm it is no problem with your xml....
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 9 months ago

0 Answers:

No answers yet
Feedback