2005 IR Help Posted August 23, 2006 Share Posted August 23, 2006 By: Mihir Parekh - mihirparekh Text alignment using a parameter 2004-03-03 21:26 Is is possible to change the alignment of text field using a parameter ? Thanks, Mihir By: David Lim - aberrant80 RE: Text alignment using a parameter 2004-03-03 22:42 You mean like saying textAlignment=$P{HAlign} ? No. but you can first load up the xml and dynamically change the design. By: David Lim - aberrant80 RE: Text alignment using a parameter 2004-03-04 01:47 Don't thank me yet :) I'm having problems of my own with Jasper which no on seems able to answer. So I'm probably not too accurate about things. As for your question, I don't think it'll affect performance much. As I know it, the steps are: 1) Load up a JasperReport from your .jasper. (or compile one) 2) Get the band with the textfield, search for the textfield to get the reference. 3) Update what you need. Take a look at the alterdesign sample to get an idea, especially with the use of keys. Should help. But I may still be wrong, cos I really haven't tried something like that before. By: Mihir Parekh - mihirparekh RE: Text alignment using a parameter 2004-03-03 23:41 Thanks David. What will be the effect on performance if I change the design dynamically? Mihir By: Teodor Danciu - teodord RE: Text alignment using a parameter 2004-03-04 13:13 Hi, There are two ways to do this: 1) "alterndesign" sample 2) http://jasperreports.sourceforge.net/tips.tricks.html#formatting I hope this helps. Teodor By: Jonathan Sutherland - jsutherland RE: Text alignment using a parameter 2004-03-09 06:36 Sorry, I cannot find the alterndesign sample or am I blind. By: Teodor Danciu - teodord RE: Text alignment using a parameter 2004-03-09 13:43 Hi, It is in the /demo/samples directory of the distributed project package. Or here: http://cvs.sourceforge.net/viewcvs.py/jasperreports/jasperreports/demo/samples/alterdesign/ Thank you, Teodor 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