aspose file tools*
The moose likes Other Open Source Projects and the fly likes My first post (thank): report with subreport open Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "My first post (thank): report with subreport open" Watch "My first post (thank): report with subreport open" New topic
Author

My first post (thank): report with subreport open

Federico Nardone
Greenhorn

Joined: Mar 17, 2009
Posts: 4
Hi all, i'm italian developer and this is my first post.

In my JSP web application, developed with Eclipse, all work good. I have more and more report and i open this correct with the posted servlet and all work good. Now, yesterday i have a report with subreport create. If i open this from iReport IDE, all work good and i see the report (with subreport inside) correct. If i put the files report.jasper and subreport.jasper in report folder of my application, and i click on the "report open" button of my web page, i see not error message but a blank page.

I have choose the option "put the subreport path in a parameter SUBREPORT_DIR" and i give this parameter from serlvet, with same path of main report. I think, the cause of problem is subreport path.

Can help me?

Very thank,

Archimede


Anthony Alford
Greenhorn

Joined: Mar 24, 2009
Posts: 2
You have probably already figured this one out by now, but anyway. Did you set your Subreport Expression in your main.jrxml? I'm using an older version of iReport and it is a right click on the area taken up by the added subreport, select properties, select Subreport(Other) and make sure you have a Subreport Expression. Mine is $P{contextRoot} + "//reports//RFIoverdue.jasper". You may want to print out your parameter $P{SUBREPORT_DIR} in a text field to make sure the slashes are correct. Pretty sure that's what I did along time ago, now I use pretty much the same format over and over.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My first post (thank): report with subreport open
 
Similar Threads
Jasper Exception
[Java & Jasper Report] Simple and very detailed question about subreport "null" field
Storing multiple query string and execute them using result set
Getting value of static variable with Reflection ?
not loading the jasper xml files