Jump to content
We've recently updated our Privacy Statement, available here ×

sctom123

Members
  • Posts

    6
  • Joined

  • Last visited

sctom123's Achievements

Rookie

Rookie (2/14)

  • First Post Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. you maybe check whether you have put something in your detail design area.can you upload your template file?
  2. Have you set main report query?I have a bad mathod.in oracle database ,I set main query as "select sysdate from dual",then solve this problem.
  3. Post edited by: sctom123, at: 2006/12/21 09:35
  4. maybe have a system variable,you can see the demo which jasperreport soucecode folder
  5. I have find a solution. JRFileVirtualizer virtualizer = new JRFileVirtualizer (2, "c:\test"); the max size was setted too small.I modified it as below: JRFileVirtualizer virtualizer = new JRFileVirtualizer (100, "c:\test"); the pdf document can be export normally.I will continue to do more test. Thanks anyone. espiecly redbeans.:P
  6. I meet a strange problem.I export a pdf file which nearly 8M.about 32 pages.when I export it in Ireport ,I can work normaly.but when I write a simple program to export it .a outofmemory Error occurs.I have debug source code of IReport about exporting.but I find nothing diffrent.why? This is my export code: Code: Connection connection = null; try { connection = getConnection(); JRFileVirtualizer virtualizer = new JRFileVirtualizer (2, "c:\test"«»); virtualizer.setReadOnly(false); map.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); String fileName = "D:\temp\report\chart.jasper"; JasperReport jr = (JasperReport) JRLoader.loadObject(fileName); JasperPrint jp = JasperFillManager.fillReport(jr, map, connection); net.sf.jasperreports.engine.JRExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter(); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,"c://test//test.pdf"«»); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jp); exporter.exportReport(); I have speed a week time on this problem.but I haven't find solution.can someone can help me .apprecieate for your reply.
×
×
  • Create New...