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

Subreport problems


maalto

Recommended Posts

Hi all,

I am trying and trying and now I seem to be totally lost in this. How to make and understand a subreport.

Could somebody please explain it to me.

I have tried in all different ways, but none has succeded. The most simple way I would think it could have worked was a simple product list from Northwind database (MS-sql2000). I create the subreport and it's working fine. I create the master report and include the subreport into it and also define the "Use connection expression" as $P{REPORT_CONNECTION} and the "Subreport expression" as "D:\rep\t\products.jasper", where I have the .jasper compiled file for the subreport. Still when I run the master I get "The document has no pages", no data seems to be transferred via the subreport ?

What am doing wrong, missunderstanding ?

 

Thanks in advance, Mikael

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

hi - I was just through this process as well.

 

First of all you need to use the forward slash. also these ".jasper" files are saved at the root of location where JasperSoft has been installed. Liek for me I had to use:

 

"C:/Program Files/JasperSoft/iReport-2.0.2/report_name.jasper"

 

Hope this helps!

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...