pilous Posted June 8, 2007 Share Posted June 8, 2007 Hello,how can I make dotted or dashed underline on textfield or on static text?I can´t find the proper attribute.Thanks Tomas, CR.Post edited by: pilous, at: 2007/06/08 13:02 Link to comment Share on other sites More sharing options...
kchaudhry Posted June 8, 2007 Share Posted June 8, 2007 You can simply right click on the text field or static text field -> properties -> border -> go to the bottom one and click on the the drop down and select dotted. Hope this helps! Link to comment Share on other sites More sharing options...
pilous Posted June 9, 2007 Author Share Posted June 9, 2007 Thank you for answer.I have known about this way, but after that the whole textfield is dotted-underline. But I need only the word in the textfield will be dotted.For example if I have a textfield 100 points width, and the text in it is olny "abc", than all the 100-width textfield will have the dotted bottom border. And I need only the "abc" text will be dotted-underline.Thanks for tips. Link to comment Share on other sites More sharing options...
mdahlman Posted June 10, 2007 Share Posted June 10, 2007 Hi Pilous, This is a pretty common question. You need to use the property "Is styled text". You'll find other threads addressing it here and here. Probably your best starting place is to follow the link provided by Teodor in the JR thread "READ THIS before creating a NEW TOPIC". Download jasperreports-1.3.3-project.zip and you'll find jasperreports-1.3.3-demo-samples-styledtext-StyledTextReport.jrxml. This should be exactly the example you need. Regards,MattJasperSoft Post edited by: mdahlman, at: 2007/06/10 16:29Post edited by: mdahlman, at: 2007/06/10 16:31 Link to comment Share on other sites More sharing options...
pilous Posted June 11, 2007 Author Share Posted June 11, 2007 Hello Matt,I can use Style Text now. But it does not help me. I think there is no support for the dotted/dashed underline in the style text. I need something like this in HTML:Code:<span style="border-bottom:dotted">dotted-underline</span>or the same using CSS. Maybe I only did not find the right tag in the style text properties.If you know how to do this, please write the tag here. Thanks Tomas. Post edited by: pilous, at: 2007/06/11 09:09Post edited by: pilous, at: 2007/06/11 09:12 Link to comment Share on other sites More sharing options...
mdahlman Posted June 12, 2007 Share Posted June 12, 2007 Hi Thomas, You are right. It seems that I read your question too quickly. JR supports only a limited set of HTML tags. When it encouters a tag that it doesn't understand the content is just rendered as text. So there is no simple way to get unsupported HTML code (like style="border-bottom:dotted") into a report. In fact, I don't see much a short-term workaround for this. I discussed with the development team, and there are some ideas about how in the long term we might add support for arbitrary HTML. But plans aren't definite yet. In general JR is focused on providing identical output across all channels. So adding HTML features that would not be supported in other channels would be a bit of a departure from this philosophy. You could try reposting to the JR forum, since it's really more of a JR issue than an iReport issue. Perhaps someone else has come up with a sort of workaround to this. But I suspect that there is no simple solution today. Regards,MattJasperSoft Link to comment Share on other sites More sharing options...
pilous Posted June 13, 2007 Author Share Posted June 13, 2007 Hi Matt, this is one of the answers I wanted to get.Rather I watned the second answer: How to make that. :-). I will try to solve my problem in any other way. Many thanks for your time. Sorry of my English. Regards, Tomas. 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