Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:53:46+00:00 2026-06-15T21:53:46+00:00

I have a jasper (master) report embed in a jar. The report is got

  • 0

I have a jasper (master) report embed in a jar. The report is got from a java input stream. The jasper report is made by iReport 3.7.0

In this master report, there are a few sub-reports. At the moment I have to use

Subreport Expression : $P{SUBREPORT_DIR} + “\\SubReport.jasper”

Expression Class : java.lang.String

in the iReport to make it works. It means that I store the subReport.jasper in SUBREPORT_DIR folder.

My question is, how to embed these sub-reports in the jar like the master report? And what should fill in the “Default Value Expression”? (if it is needed)

The closest question and answer so far I have seen is in here

How to load subreport resources with Jasper?

However the answer is not sufficient to me for master report compile. There is an error message saying missing sub-report when compile (and this is why I think the Default Value Expression may be needed?)

Thank you very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:53:48+00:00Added an answer on June 15, 2026 at 9:53 pm

    for example:
    i have report and subreport, located in some *.jar file. to invoke subreport i set subreport expression

    getClass().getResource("/path/to/my/report/in/a/jar/subreport.jasper").openStream()
    

    and choose subreport expression class java.io.InputStream

    it is working!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a servlet from Jasper Reports for Java Develper (chapter 3) which
I have a simple jasper report which shows some data from database. The jasper
I have this problem having to display my jasper report on my grails application.
I am creating a simple reporting program using java and iReport (from jasper), which
I have problem related to file protection when changed the Jasper Report output from
I have a report created in Jasper Reports which ONLY recognizes java.util.Date's (not Calendar
I have made a Jasper line chart using ireport. Now I want to convert
I have designed jasper report using iReport version (4.7.1). Through iReport it works fine.
Is there a way to run a jasper report from within python without using
I am using grails and I have this Jasper report with a subreport in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.