how to use JRSwapFileVirtualizer for jasper reports in java, this is the code which i use..
JRSwapFileVirtualizer virtualizer = null; virtualizer = new JRSwapFileVirtualizer(10000, new JRSwapFile("F://", 1000, 1000), false); param.put(JRParameter.REPORT_VIRTUALIZER, virtualizer);
xmlDataSource = new JRXmlDataSource(reportFile,"/table/tr"); jasperPrint = JasperFillManager.fillReport(jasperpath, param, xmlDataSource);
still i get the heap space error(OutOfMemeoryException), and the file which gets created is empty.