udumanajmeer Posted June 19, 2013 Share Posted June 19, 2013 For this scenario, i want to create customize table like this in jasper report. In table left content is static text and right content values comes from data base. what i do now... any one can help me..... Personal Details:NameXXXAge21GendermaleFather NamexyxyMother Nameyxyx Contact Details:Primary Emailxxxxx@xxx.comSecondary Emailyyyyy@yyy.comMobile No959595955Landline No044555555Fax044455555 Medical Details:Blood GroupB+veDo you smokexxxxxDo you drinkxxxxx Link to comment Share on other sites More sharing options...
Thomas Zimmer Posted June 20, 2013 Share Posted June 20, 2013 Simply use the detail band(s) for this. Short steps:- Each record of your reports query is transferred into the fields of your report- The detail shows a record of your result, so simply drag the field from the Report Insprector onto the detail band. The static field with the labels should be created automatically.- You could place more than one field in the detail band, one upon the other. But I prfer using multiple detail bands (right-click on the detail band in the report inspector and select "add another detail band")- Settings you should use for the text fields: "Print When detail overflows = true", "Stretch With overflow = true" (convert the labels form static text to text fields too, if option is not available), "Stretch type = Relative to ...."- For setting frames, right-click the text fileds and work with "Padding and borders", do not use rectanglesHope this helps.Cheers, Thomashttp://www.thomaszimmer.net 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