Using a .jasper file present within a jar file

后端 未结 1 1892
梦毁少年i
梦毁少年i 2021-01-26 18:43

We are using JasperReports as our reporting tool. Earlier we were using relative paths for jasper files for filling report and it\'s working fine.

Now, we w

相关标签:
1条回答
  • 2021-01-26 19:07

    Most APIs worth using will provide overloaded methods to accept input streams. E.G. JasperFillManager.fillReport(InputStream, Map)

    To get in InputStream, use Class.getResourceAsStream().

    0 讨论(0)
提交回复
热议问题