Jump to content

Blank subreport.


vijihillary

Recommended Posts

hai,

         I am using same datasource in both main and subreport.I pass the subreport location in parameter of main report.When i run my report its display the blankpages.The subreport  works fine in its own page.Please give me a solution.I attached my subreport and mainreport. Here ProductionReport1.jrxml is my subreport and SampleMainReport.jrxml is my main report.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

First of all, I am new to Jasper reports myself, but I experienced the same problem. If anything I mention below is wrong feel free to correct me.

In your parent report "Samplemainreport" select the subreport... you need to provide the directory of the subreport in the subreport expression properies box.

i.e. $P{SUBREPORT_DIR}+"name of subreport.jasper" (that is if you save your subreport in the same directory you save the main report)

Than in Parameters Map Expression choose $P{REPORT_PARAMETERS_MAP}

From the looks of it... that should be all you're missing. Just make sure your  parameters in the subreport are the same as your parent report.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...