louis.gely Posted April 27, 2007 Share Posted April 27, 2007 Hi every body, I have 2 little questions : - Does someone know what is the number max of pages we can have in an pdf Report (I have some memory problem <ligne>Java heap space</ligne>) - I am using a textfield (the field is a string), and I have a string wich is only composed by figures (ex : 544063846406516540645340684). I export my report with the XlsExporter. In the Xls report the cell with this value is changed in 54406384640E10. Do you know how to avoid this transformation? (I have already use this : export.setParameter(JRXlsExporterParameter.IS_AUTO_DETECT_CELL_TYPE, Boolean.FALSE); But it does not work) Thank you in advance PS : I use JasperReports 1.2.1 Link to comment Share on other sites More sharing options...
louis.gely Posted May 2, 2007 Author Share Posted May 2, 2007 Please help :) Link to comment Share on other sites More sharing options...
edikk Posted May 2, 2007 Share Posted May 2, 2007 Try:exporter.setParameter(JExcelApiExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); I think there is an error, and it work in different wayEdik Link to comment Share on other sites More sharing options...
Teodor Danciu Posted May 2, 2007 Share Posted May 2, 2007 Hi, There is no specific size limit for PDF files.But if you are generating fairly large reports, you should consider using a report virtualizer, to minimize memory consumption, because otherwise JR would keep the whole document in-memory during filling and exporting.Take a look at the supplied /demo/samples/virtualizer sample. If you want your numeric string to remain text, set the IS_AUTO_DETECT_CELL_TYPE to Boolean.FALSE.This deprecated flag is true by default for backward compatibility reasons.The newer IS_DETECT_CELL_TYPE should not matter if the text field in the report template has an expression of type String. I have tested with your number and what I told you seems to work. At least with the recent JR 1.3.3. I hope this helps.Teodor Link to comment Share on other sites More sharing options...
louis.gely Posted May 3, 2007 Author Share Posted May 3, 2007 Thanks a lot it works :) 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