Splitting a Detail Band into 2 Columns or More in Jasper

Posted on by By Satya Gopi, in Jaspersoft | 0

Prerequisites: JasperServer 6.4.2,Jasper Studio

Databases: Foodmart

Recently we have come across one requirement like one table has 2 columns and in the report itself we have lots of empty space, to eliminate that empty space we have printed the table’s side by side in place of the page by page.

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Get your 30 Days Trail Version

Let’s see how we can able to print the Tableside by side by using Detail band

Actual:
actual

Step 1: Created a sample report which has only 2 columns and deployed to jasper server and the output is as above

Step 2: To print table component side by side ,we need to place this component in detail band then only it would possible

Step 3: If main query returns 1 single row then no issues, if main query returns more than 1 row then table is print that much of time because we have placed in detailed band ,to eliminate multiple times printing ,I am restricting detail band to print only 1 time by giving below property in Print when expression

$V{REPORT_COUNT}==1

actual

Step 4: To get the Table side by side ,just change the below property ,we can increase the value as per our wish

Columns = 2
actual

Step 5: The Report design will looks like below ,with 2 separations

actual

Step 6: Run the Report and output looks as follows:

Make data easy with Helical Insight.
Helical Insight is the world’s best open source business intelligence tool.

Get your 30 Days Trail Version

actual

In case if you have any queries please get us at support@helicaltech.com

Thanks,
SatyaGopi
BI Developer
Helical IT Solutions Pvt Ltd

logo

Best Open Source Business Intelligence Software Helical Insight Here

logo

A Business Intelligence Framework


logo

Best Open Source Business Intelligence Software Helical Insight is Here

logo

A Business Intelligence Framework

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments