Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jasper Report

 
Rekha Subramaniyan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I've designed a report in jasper designer. Manual report is in format(which has 10 rows it should be static).So i've to create 10 rows to the user needs in jasper. I've created the 10 lines and dynamic text field in details band. So it should have 10 lines and dynamic text according to the query i've given. What i've got stuck is, it is printing 1 record per page(say if i've 5 records, each records is displayed as record per page, in 5 pages) I've to display 5 records in the first page and the remaining rows of the page should be empty. Please give some idea.
 
arulk pillai
Author
Ranch Hand
Posts: 3387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that your dynamic text fields are defined in the details band and not in the header or footer bands.
 
Rekha Subramaniyan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've kept Dynamic text fields are defined in the details bands. My need is "I've designed report and if i execute with(empty datasource) it is viewing 10 rows as my need. If i execute with active connections i've got 1 row per page. like if my query gives result as 5 records it is viewing in 5 single rows. Each single row is in each page(5 rows->5 pages). I've to show 5 records in the single page itself.. any ideas please
 
Vijaya Bhaskar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rekha Subramaniyan:
I've kept Dynamic text fields are defined in the details bands. My need is "I've designed report and if i execute with(empty datasource) it is viewing 10 rows as my need. If i execute with active connections i've got 1 row per page. like if my query gives result as 5 records it is viewing in 5 single rows. Each single row is in each page(5 rows->5 pages). I've to show 5 records in the single page itself.. any ideas please


Just check whether you dragged(i think you made more padding) the footer sections...don't drag that much..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic