tejeshwar Posted September 29, 2008 Share Posted September 29, 2008 Hi,Can the Default page size in the Adhoc Reports section, be set to A4 size as the default value, instead of the Letter size.how can we do this.Thanks. Link to comment Share on other sites More sharing options...
swood Posted October 29, 2008 Share Posted October 29, 2008 In the WEB-INF/applicationContext-adhoc.xml file, there are lines: <entry key="paperSize" value="letter"/> You can change this to <entry key="paperSize" value="a4"/> ShermanJaspersoft Link to comment Share on other sites More sharing options...
bobtins Posted October 30, 2008 Share Posted October 30, 2008 I'd like to elaborate on that a little bit.There are four types of reports handled by Ad Hoc: table, chart, crosstab, and dashboard. Each one has a list of default settings in applicationContext-adhoc.xml, so you will see four occurrences of the "paperSize" entry, under the properties "tableDefaults", "crosstabDefaults", "chartDefaults", and "dashboardDefaults". Table and crosstab are set to "letter" by default, and chart and dashboard are set to "content", which means that the size of the output isn't constrained by a paper size. You probably want to set "a4" as the default in table and crosstab. Link to comment Share on other sites More sharing options...
carlthewinner Posted June 19, 2009 Share Posted June 19, 2009 Is there a way to have a report that uses multiple page sizes when generating the PDF?I have a report that generates a normal size PDF and another report that generates an envelop sized PDF with an address. I would like to combine the two reports so that the first page of the PDF generated is a standard letter size, and the second page of the PDF is the size of an envelope.I tried putting the envelope in a sub report, but when the subreport is generated it is on a page with the standard size.Is there a way to do this?Thanks!Carl Link to comment Share on other sites More sharing options...
lucianc Posted June 25, 2009 Share Posted June 25, 2009 carlthewinnerWrote: Is there a way to have a report that uses multiple page sizes when generating the PDF? I have a report that generates a normal size PDF and another report that generates an envelop sized PDF with an address. I would like to combine the two reports so that the first page of the PDF generated is a standard letter size, and the second page of the PDF is the size of an envelope. I tried putting the envelope in a sub report, but when the subreport is generated it is on a page with the standard size. Is there a way to do this? Thanks! Carl You can't do that currently in a single report.JasperReports support batch exporting which allows several reports to be exported in a single PDF file, but this functionality cannot be leveraged in JasperServer.Regards,Lucian 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