File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Unified Printing API - JSR6 and the fly likes Change report size in Jasper Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java JSRs » Unified Printing API - JSR6
Bookmark "Change report size in Jasper" Watch "Change report size in Jasper" New topic
Author

Change report size in Jasper

Nandan Jain
Ranch Hand

Joined: Feb 14, 2006
Posts: 44
Hi All,
I am printing data in a PDF using Jasper and it is working fine. The only issue is size of the the report. Since I have dynamic number of rows and columns in my report so I am using Cross tab in Jasper. I know that total number of columns would always be 22 or less so I have chosen a big report size. But I think there is a way to set the report size on runtime. Since I know how many columns are there in my data set I can always set report size accordingly before generating PDF.
I am using Spring 3.1 and Jasper 4.6 in my project. In the controller I get reference of the below bean and it is set in the ModelAndView which is returned to client.





I want to understand how can I change the report size?

Thanks
 
wood burning stoves
 
subject: Change report size in Jasper
 
Similar Threads
Session Factory in Logs
spring 2 with hibernate 3
calling a method in hibernate DAO through JMX export MBean
how to tell MultiActionController Command Object is Of type com.dss.ems.model.User
dataSourceResourceLoader to load velocity Template from db