aspose file tools*
The moose likes Other Open Source Projects and the fly likes Set Subreport absolute path 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 "Set Subreport absolute path" Watch "Set Subreport absolute path" New topic
Author

Set Subreport absolute path

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1281

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


No Kaustubh No Fun, Know Kaustubh Know Fun..
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1281

how can we do it ...?
bilal sidiqui
Author
Greenhorn

Joined: Aug 09, 2010
Posts: 17
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.


Bilal Siddiqui, Author of JasperReports 3.6.0 Development Cookbook
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1281

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
 
 
subject: Set Subreport absolute path