This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Set Subreport absolute path Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Reply 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: 1160

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: 1160

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: 1160

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
 
subject: Set Subreport absolute path
 
Similar Threads
Dynamic Band Height in JRXML
Problem with subreport in jasper reports overlapping with the others components
Jasper REport Help
Subreport in Ireports with different datasource
Problem with Jasper Subreport