2 Replies Latest reply: Jun 4, 2007 5:00 AM by 807606 RSS

    Jasper report on HTML when one image loaded from database and for the other

    807606
      How to generate jasper report on HTML when one image loaded from database and for the other we give a image path
      My code
      ByteArrayOutputStream baos = new ByteArrayOutputStream();
                exporter = new JRHtmlExporter();
                exporter.setParameter(JRExporterParameter.JASPER_PRINT, print);
                exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);
                exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, strImageInputDirectory);
           exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME, strImageOutputPath == null ? "." : strImageOutputPath);
           exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR, Boolean.TRUE);
           exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
           exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);

                exporter.exportReport();
                byte[] bdata = ((ByteArrayOutputStream) baos).toByteArray();

      Can any one help pls

      Message was edited by:
      ameet.au