Jump to content
Changes to the Jaspersoft community edition download ×

Adding of jasper print object problem


akolanupaka

Recommended Posts

Hi

 

Combining jasper print object like this

 

for (int i = 0; i < nSubReport1Pages; i++) {

jasperPrintAll.addPage((jasperPrintSub1) report1List.get(i));

}

 

for (int i = 0; i < nSubReport2Pages; i++) {

jasperPrintAll.addPage((jasperPrintSub1) report2List.get(i));

}

 

jasperPrintAll.setPageHeight(nPageHeight);

jasperPrintAll.setPageWidth(nPageWidth);

}

 

gives desired output in both html and excel but while displaying this combined output of two jaspers object in pdf its giving a page break for the two jasper printobjects which i dont want

HOw can we do this

 

Any kind of help is greatly appreciated.

 

 

Thanks.

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

 

If you have generated the two reports independently, then each of them will start on a new page.

If you want the second document to start where the first one has finished on a page, then you must put them together as subreports in a master report.

 

You could put them one after the other with positionType="Float" in the <title> sections of a master report width whenNoDataType="AllSectionsNoDetail" which you fill with a null data source.

 

I hope this helps.

Teodor

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