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

milind

Members
  • Posts

    3
  • Joined

  • Last visited

milind's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hi, Thanks for prompt reply. I had used HttpServletResponse object in incorrect way, know it working fine. But, I still have problem while exporting report in RTF,XLS formats. When bitmap images are exported to RTF or XLS report the XLS report is blank and Rtf report could not be displayed by browser. While debugging I found that exportToOutputStream() of JRRtfExporter through an exceprion, leaving the outputstream in invalid state. I am trying to pin point and resolve the problem, if u have any idea please reply. Regards, Thanks. Milind.
  2. Hi All, Sorry!! now the previous problem is solved. I had some wrong version of libs. But, I do get other error for Xls Export including images.(Pdf works fine) some portion of error displayed in browser : description The server encountered an internal error () that prevented it from fulfilling this request. exception: com.sun.rave.web.ui.appbase.ApplicationException: getOutputStream() has already been called for this response com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.destroy(ViewHandlerImpl.java:601) com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:316) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) Regards, Thanks
  3. I want to export report in Excel with image, I m using jasperreports-1.2.6.jar file and jxl-2.7.jar class lib. But i receive an exception on the webpage(see attachment). Here is code snap JExcelApiExporter exporterAPIXLS = null; exporterAPIXLS = new JExcelApiExporter(); response.setContentType("text/plain"); //response.setContentType("application/vnd.ms-excel"); exporterAPIXLS.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporterAPIXLS.setParameter(JExcelApiExporterParameter.OUTPUT_FILE_NAME, "Hello.xls"); //exporterAPIXLS.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream()); exporterAPIXLS.setParameter(JExcelApiExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE); exporterAPIXLS.setParameter(JExcelApiExporterParameter.IS_DETECT_CELL_TYPE, Boolean.TRUE); exporterAPIXLS.setParameter(JExcelApiExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE); exporterAPIXLS.setParameter(JExcelApiExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); exporterAPIXLS.exportReport(); response.getOutputStream().close(); I m new to Java and JasperReport, so plz let me know whats the problem. Exception Details: java.lang.IllegalAccessError tried to access method jxl.write.biff.WritableFontRecord.setStruckout(Z)V from class net.sf.jasperreports.engine.export.JExcelApiExporter Thanks. Milind Post edited by: milind, at: 2006/09/13 08:29
×
×
  • Create New...