• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Change report size in Jasper

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic