akolanupaka Posted December 6, 2007 Share Posted December 6, 2007 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 More sharing options...
Teodor Danciu Posted December 14, 2007 Share Posted December 14, 2007 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 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