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

Formatting Data : Help needed


hnarsha

Recommended Posts

I am almost new to jasper reporting so DOnt know much to play with it....

 

 

 

I have a sql query running which gives me a number of names.

I am able to print each name in new row/new line. But I want to print 4 names in a single row.....

 

some thing like below

 

instead of printing

 

a

b

c

 

I want to print as

 

a b c

 

 

Any suggestion ?

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

To make sure I understand what your asking, you print the names, 1 from each record in your data set?

 

ie. the table is:

 

ID | NAME

1 | Joe

2 | Frank

3 | Suzy

4 | Nancy

 

 

So your jasper report has:

 

-----detail band------

$F{NAME}

----------------------

 

giving you:

-----detail band------

Joe

Frank

Suzy

Nancy

----------------------

?

 

If so, you can introduce columns and set the fill order to be Horizontal. This way you will have n columns allowing for n records to be filled to the right and then another line filled to the right.

 

So assuming that we use 3 columns:

 

------ detail band ------------

Joe Frank Suzy

Nancy

-------------------------------

 

HTH,

Robin

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...