ramy Posted July 29, 2008 Share Posted July 29, 2008 Hello, Ive been using JasperReports for a little over a week now and have made quite a bit of progress. I am at the point now where I would like to use a csv file of parameters for the queries contained in the jrxml files. Essentially, each line in the csv file is the equivalent of a single SQL query and so from each line in the csv file, I create a HashMap and add that hashmap to a vector of hashmaps. I then pass each hashmap in the vector to JasperFillManager.fillReportToFile(). Unfortunately, at this time, I'm only getting a blank pdf for each line in the csv file. I was hoping to enable the logging in JasperReports to determine what is happening behind the scenes to cause the pdf's to turn out blank. I know that I can add an xml tag to the jrxml that would display the columns, but that doesn't solve the problem. It only creates pdf's with the headers but no information. If someone could show me how to extract the log messages from JasperFillManager, it would be greatly appreciated.Thanks,Ramy Link to comment Share on other sites More sharing options...
lshannon Posted July 29, 2008 Share Posted July 29, 2008 I would guess you would just need to add: net.sf.jasperreports.engine.JasperFillManager=debugTo a log4J file in your projects class path.Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now