• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Set Subreport absolute path

 
Ranch Hand
Posts: 1283
Netbeans IDE Chrome Java
  • 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
Netbeans IDE Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can we do it ...?
 
Author
Posts: 17
  • 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
Netbeans IDE Chrome Java
  • 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 don't even know how to spell CIA. But this tiny ad does:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!