hnarsha Posted November 22, 2006 Share Posted November 22, 2006 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 abc I want to print as a b c Any suggestion ? Link to comment Share on other sites More sharing options...
rsilverns.sympatico.ca Posted November 22, 2006 Share Posted November 22, 2006 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 | NAME1 | Joe2 | Frank3 | Suzy4 | Nancy So your jasper report has: -----detail band------$F{NAME}---------------------- giving you:-----detail band------JoeFrankSuzyNancy----------------------? 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 SuzyNancy------------------------------- HTH,Robin Link to comment Share on other sites More sharing options...
hnarsha Posted November 23, 2006 Author Share Posted November 23, 2006 could you please tell me how to introduce columns ? I am kinda new to this so dunno much abt it.... Link to comment Share on other sites More sharing options...
hnarsha Posted November 23, 2006 Author Share Posted November 23, 2006 ok, I got it.... Its done now... Thanks a lot. 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