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

ranG

Members
  • Posts

    4
  • Joined

  • Last visited

ranG's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. I have downloaded and installed the standalone version of ireport ---> works fine. Is there a way we can manually install the ireport eclispe plugin without going to eclispe-->help- software updates. I am thinking of applying the following steps: My Eclispe install directory is c:/eclipse3.2 iReport eclipse plugin installed c:/ireport and provide a link file in c:/eclipse3.2/eclipse/links which has the path entry like: path=wherever the ireport installed I am not sure, if this could be done. Please let me know, if I can install using above steps. If yes, What I need to do. I really appreciate any replies. Thanks
  2. Thanks Teodord, Appreciate your reply. I know that you are the GURU of Jasper reports, SO I am guessing this question wouldn't be very hard for you. I have a sample application in which I am trying to export my report to graphics2D, While exporting I want to save it in a file as image as I want to convert that image to tiff format using JAI. I am not sure about the foramt of the image output. And also some parameter settings for the exporter. Here's my sample: String reportFileName = "static_report"; Map parameters = new HashMap(); try{ JasperReport jasperReport =(JasperReport) JRLoader.loadObject(getServletContext().getRealPath( "/reports/" + reportFileName + ".jasper")); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JREmptyDataSource ()); JRGraphics2DExporter exporter = new JRGraphics2DExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "simpleReportImg"); exporter.exportReportToGraphics2D(); } catch (JRException e) { e.printStackTrace(); }
  3. Thanks Teodord, Appreciate your reply. I know that you are the GURU of Jasper reports, SO I am guessing this question wouldn't be very hard for you. I have a sample application in which I am trying to export my report to graphics2D, While exporting I want to save it in a file as image as I want to convert that image to tiff format using JAI. I am not sure about the foramt of the image output. And also some parameter settings for the exporter. Here's my sample: String reportFileName = "static_report"; Map parameters = new HashMap(); try{ JasperReport jasperReport =(JasperReport) JRLoader.loadObject(getServletContext().getRealPath( "/reports/" + reportFileName + ".jasper")); JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters, new JREmptyDataSource ()); JRGraphics2DExporter exporter = new JRGraphics2DExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "simpleReportImg"); exporter.exportReportToGraphics2D(); } catch (JRException e) { e.printStackTrace(); }
  4. Does anyone tried this? I know that Jasper reports does not provide any direct functionality to generate reports in TIFF format. I am not sure whether the future releases will include this functionality. Meantime, If anyone tried this, It will be nice if you could post the codeSample as well. Thanks and I appreciate your time in replying to this.
×
×
  • Create New...