maalto Posted October 23, 2007 Share Posted October 23, 2007 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 More sharing options...
svenn Posted October 23, 2007 Share Posted October 23, 2007 What is your Subreport Expression Class? Did you try D:/reptproducts.jasper in you Subreport expression? Link to comment Share on other sites More sharing options...
maalto Posted October 24, 2007 Author Share Posted October 24, 2007 Sorry I misspelled a bit:Subreport expression: "D:\reptproducts.jasper"as java.lang.String class BR. Mike -I dont know why backslash doesn't show...Post edited by: maalto, at: 2007/10/24 15:21 Link to comment Share on other sites More sharing options...
svenn Posted October 24, 2007 Share Posted October 24, 2007 Does your sub report have any parameters? Are you passing the parameters from the main report? Link to comment Share on other sites More sharing options...
vk01 Posted October 25, 2007 Share Posted October 25, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now