2002 JI Open Discussion Posted August 17, 2006 Share Posted August 17, 2006 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.... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now