• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set Subreport absolute path

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I working with subreport to create reports in jasper ireport where I have to set the path for master as well as subreport... this work I have to done in my master report.... Now for every place I have to change this path according to different-different paths.. I need to set an absolute path for it please help me out in this...

Thanks
Kaustubh
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can we do it ...?
 
bilal sidiqui
Author
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think a good practice is to have a folder for all subreports of a particular master report. JasperReports provides a parameter named "SUBREPORT_DIR", which can hold the location of the subreports folder.

Unfortunately relative URL's don't work in JasperReports.

If your subreports are running around, I don't see any way of finding a simpler solution.

Anyway the use of subreports is comprehensively covered in my book.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you mean that we can't define an absolute path for subreport oh man this is insane
Well Bilal I tried to do it manually and it is working but everytime you have to set the path according to client system...is there any way out

Kaustubh
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic