Jump to content
  • SubReport not appearing when running outside iReports


    dgarratt
    Assigned User teodord
    CategoryBug report
    PriorityHigh
    ReproducibilityAlways
    ResolutionNo Change Required
    SeverityMajor
    StatusClosed

    Simple Master-Detail report which contains a single subreport does not display the same information when run outside of iReports. Possible issue with passing Resultset to main report.

     

    Documented in forum post http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=78026

     

    Version 3.7.4 of iReports and 3.7.4 of JasperReports.

     

    I have purchased both Ultimate Guides but have been unable to overcome this problem.

     

     



    User Feedback

    Recommended Comments

    Ok - found the solution - albeit not in any official documentation.

     

    I had to add the following two lines to my java code which runs the report.

     

    parameterValues.put(JRParameter.REPORT_DATA_SOURCE, jasperresultset);

    parameterValues.put(JRParameter.REPORT_CONNECTION, connection);

    Link to comment
    Share on other sites

    Might I suggest that apart from the demo - source code it might be helpful to put a few lines of sample Java code in the manual which help people run the reports which are created in iReport. In fact an option to create a "launcher" skeleton/template code to run the report would be great.
    Link to comment
    Share on other sites


×
×
  • Create New...