Jump to content
Changes to the Jaspersoft community edition download ×

CSV file custom datasource: help!


Recommended Posts

By: Matthew Dootson - dootson

CSV file custom datasource: help!

2003-10-13 07:03

Please help me, I'm trying to read data into a report from a .csv file. The file is formatted like this:






And I am using it.businesslogic.ireport.connection.CSVDatasourceTestFactory

(getTheDatasource) as my connection, as described in



I have set it as my active connection, but when I try to fill the fields in my report it says

"Report design not valid:

1. Field not found: ..."


should I be using $F{COLUMN_1} in my fields, or do the names come from the first row in the file?


Or is there something I've missed? My CVSDataSourceTestFactory getTheDataSource() method is pointing to the correct file (I think):

return new RCSVDataSource("e:\iReport-0.2.2\test.csv");


Any help would be greatly appreciated, I'm new to this (as you can probably tell!)




- Matt

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...