how to generate ireport from csv file

0
By: ksm - siromani
how to generate ireport from csv file
2005-06-24 02:31
hi
i am using ireports 0.4.0 for generating reports.upto now i used oracle data base. but now i need to generate report from csv file(text). i created file csv data source.but when i select the csv file in report query menu i am getting problem.when i click on read atribute button i am getting class not found exception.
so where i need to put the csv file.please tell me the detail procedure for generate report .
please any one elp me .its very urgent
thanks & regards
ksm






By: alanHardwick - alan314
RE: how to generate ireport from csv file
2005-06-24 05:49
In the documentation that comes with iReport there is an example how to do this..
Basically you need your jrCSVDataSource as per the example...
Also a method in your DSFactory.. e.g.
public net.sf.jasperreports.engine.JRDataSource getTheCSVDatasource( )
{
return new JRCSVDataSource("test.csv");
}
You will need to create the fields in iReport manually
(i.e. COLUMN_1, COLUMN_2, COLUMN_3 etc...)
etc...




By: ksm - siromani
RE: how to generate ireport from csv file
2005-06-24 06:05
thank u alanHardwick
i saw that example but i didn't get any clear idea.
i used file csvdata source not custom datasource.
is there any example for this.
please help i need urgently.
thanks & regards
ksm
2005 IR Help's picture
Joined: Aug 9 2006 - 3:40am
Last seen: 7 years 11 months ago

Answers:

No answers yet
Feedback
randomness