Jump to content
We've recently updated our Privacy Statement, available here ×

How can i create customize table


udumanajmeer

Recommended Posts

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:

Name

XXX

Age

21

Gender

male

Father Name

xyxy

Mother Name

yxyx

 

Contact Details:

Primary Email

xxxxx@xxx.com

Secondary Email

yyyyy@yyy.com

Mobile No

959595955

Landline No

044555555

Fax

044455555

 

Medical Details:

Blood Group

B+ve

Do you smoke

xxxxx

Do you drink

xxxxx

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 rectangles

Hope this helps.

Cheers, Thomas

http://www.thomaszimmer.net

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...