Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My first post (thank): report with subreport open

 
Federico Nardone
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic