[jasperreports-questions] understandig the JRFileVirtualizer
some one can explain me for what is public JRFileVirtualizer(int maxSize, java.lang.String directory) Parameters: maxSize - the maximum size (in JRVirtualizable objects) of the paged in cache. directory - the base directory in the filesystem where the paged out data is to be stored which are the cache page? which better for to spend less memory, use a JRFileVirtualizer with a JasperPrint in memory object, and after call JasperExportManager.exportReportToHtmlFile(jasperPrint,tmpFile.getPath()); or is better not use JRFileVirtualizer, and create the jasperPrint into a file and atfer export from the file to create the report? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] Re: with out memory filling big reports
hello i have solved my problem i don't know, but have changed the version of jasper to 1.2 and run perfect, but i have ohter problem o no problem question, when i call the method JasperFillManager.fillReportToFile( jasperReport, tmpFileLlenar.getPath(), parameters, ds ); this use a memory? when i call this with a small reports no problem but when i call with a big reports i have a java.lang.outOfMemory, i thought that this no have diference between small report and big reports how the fill is into a file not into a object in memory. some one know why? thanks alvaro tovar __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] Re: with out memory filling big reports
i have solved mi problem but i have another that i dond't have idea, if some one can help me. i solved my old problem whit this: //filling report to a file File tmpLlenar=new File(dirTmp); if (!tmpLlenar.exists()) tmpLlenar.mkdir(); tmpFileLlenar = File.createTempFile("rptLlenar","",tmpLlenar); System.out.println("llenando reporte"); JasperFillManager.fillReportToFile( jasperReport, tmpFileLlenar.getPath(), parameters, ds ); //export report to a file JasperExportManager.exportReportToHtmlFile(tmpFileLlenar.getPath(),tmpFile.getPath()); some litle reports run well, but some others trows a NullPointerException : java.lang.NullPointerException at net.sf.jasperreports.engine.export.JRGridLayout.createCuts(JRGridLayout.java:194) at net.sf.jasperreports.engine.export.JRGridLayout.layoutGrid(JRGridLayout.java:155) but when i export in Html format, when export to pdf Format no trows exception this is generated but many pages are in blank. thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] with out memory filling big reports
hello, i need help, i am having problems filling big reports, the server don't response this keep filling the report, i am thinking that if fill and export the report at the same time this is more fast, because if i don't have the object JasperPrint in memory this to consumes less memory, i think that if the report is export direct from the data source to the file, the server don't fill memory, i am using this: //fill report JasperPrint jasperPrint = JasperFillManager.fillReport( jasperReport, parameters, ds ); //create file to export File tmp=new File(dirTmp); if (!tmp.exists()) tmp.mkdir(); tmpFile = File.createTempFile("rpt","."+tipo,tmp); //export file JasperExportManager.exportReportToHtmlFile(jasperPrint,tmpFile.getPath()); is there some way to fill the report direct to a file without use JasperPrint? thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions
[jasperreports-questions] append a pages to the end of the report
i need help in the following, please: i need append two static pages at end of document generated in the report, but these don't fit in any bands. it's possible this? i use iReport 0.52 thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ jasperreports-questions mailing list jasperreports-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jasperreports-questions