Dynamic reports with JasperReports and Velocity
527664Oct 6 2006 — edited Oct 6 2006Hi all!
I have problems trying to create dynamic reports using JasperReports with Velocity libraries.
I have XML-like file named as velocityTest1.vm (in root of partition C), in which I call variable $sql. What I want is to define sql query in .java file, and to call velocity template.
First problem that I have here is that when I try to open vm file with:
Template t = ve.getTemplate( "c:/velocityTest1.vm" );
... I get the error message
Unable to find resource 'c:/velocityTest1.vm'
... despite the thing that file is on that location.
BTW, I am able to create "static" reports without any problem.
Also, I can not found any (worknig) example for JasperReports and Velocity
pair, if somebody can help me with this, plese.
Thank you in advance!