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

aniruddh4u

Members
  • Posts

    21
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by aniruddh4u

  1. Hi,

    I developer report using ireport on chart control i'm set some properties for tooltip...

    I'm in using timeseries chart ... so while configuring series information i'm also configuring it for tooltip.

    After saving file when i'm reopening same jrxml again.... i can't see tooltip configuration information but rest of my work i can see.... Can any1 tell me is it bug in iReport?

     

    ---Aniruddh

  2. Hi can you place to code how your generating report from java

     

    like there are 2-3 different approach of creating report from jrxml..

     

    1. JasperPrint jasperPrint = new JasperPrint();

    Connection conn = null;

    Map inputParameters = new HashMap();

    inputParameters.put("sometitle","first report");

    conn = your database connection you get from your driver (using jt400)

    JasperReport jasperReport = JasperCompileManager.compileReport("input.jrxml");

    jasperPrint = JasperFillManager.fillReport(jasperReport,

    inputParameters, conn);

    // for a pdf

    JasperExportManager.exportReportToPdfFile(jasperPrint, outputFile.pdf);

     

    or

     

     

    2. String path = request.getRealPath("jasper");

    path = path + "/AgingReportForCoverageArea.jasper";

    HashMap map = new HashMap();

    JasperPrint jasperPrint = JasperFillManager.fillReport(path, map, connectDB());

    //Block to check viewer selected

    String viewer = request.getParameter("viewType");

    if(viewer.equalsIgnoreCase("0")){

    // Open report in HTML

    response.setContentType("text/html");

    JRHtmlExporter exporter = new JRHtmlExporter();

    exporter = new JRHtmlExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

    exporter.setParameter(JRExporterParameter.OUTPUT_WRITER,response.getWriter());

    request.getSession().setAttribute(

    ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,jasperPrint);

    exporter.setParameter(JRHtmlExporterParameter.IMAGES_MAP, new HashMap());

    exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,request.getContextPath() + "/images?image=");

    // In This "images" is name of folder which contain images

    exporter.setParameter(JRHtmlExporterParameter.IMAGES_DIR_NAME,request.getRealPath("images"));

    exporter.setParameter(JRHtmlExporterParameter.IS_OUTPUT_IMAGES_TO_DIR,true);

    exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND,true);

    exporter.exportReport();

    }else{

    // Open report in PDF

    response.setContentType("application/pdf");

    JRPdfExporter exporter = new JRPdfExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);

    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,response.getOutputStream());

    exporter.exportReport();

    }

     

     

     

    cause compiling jrxml in java code itself every time when running report might use you memory and make ur application slow

  3. Hi,

    I got solution to this problem now for each series i can show tooltip as well as external link using ireport tooltip facility but its working only for HTML not for PDF can any1 tried tooltip for pdf report

  4. make other band size as 0 or if u are priting something else in your detail band apart from report ... then make u r graph report as subreport and call it from main report ..so that in subreport all u r band's will be 0 and only summary will contain graph
  5. hi,

    I'm developing time serise chart but my Y axies every time print data in java.lang.Number as 1.0 2.5 i want it in number format like 1,2,.... Please tell me solution

×
×
  • Create New...