I have a problem with Data Source in Java

Stimulsoft Reports.JAVA discussion
Post Reply
haochen.Ye
Posts: 3
Joined: Fri Apr 04, 2014 7:56 am

I have a problem with Data Source in Java

Post by haochen.Ye »

Hi,
Can I use a Datatable as a Data Source in Reports.Fx?
like this:

Code: Select all

DataTable table = this.LoadCSV();
report.RegData("CSVData", table);
If it can do, would you give some example codes?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: I have a problem with Data Source in Java

Post by HighAley »

Hello.

Here is code that you could use:

Code: Select all

report.getDataSources().get(0).setDataTable(LoadCSV());// build dataTable from csv file.
Thank you.
Post Reply