• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

My first post (thank): report with subreport open

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic