• Post Reply Bookmark Topic Watch Topic
  • New Topic

Change report size in Jasper  RSS feed

Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!