How to do can make report get date from dateset

Stimulsoft Reports.JAVA discussion
Post Reply
xing kenny
Posts: 4
Joined: Mon Dec 19, 2016 11:20 am

How to do can make report get date from dateset

Post by xing kenny »

hello!
By the following codes, how to do I can make the 'report' get data from the 'dataSet' . thanks.

StiDictionary dir = new StiDictionary();
DataSet dataSet = StiJsonToDataSetConverter.getDataTable(new FileInputStream(new File("Reports/bxd.json")));

StiDatabase database = new StiDatabaseEmpty();
database.setName("Data");
database.regData(dir, true);

report = StiSerializeManager.deserializeReport(new File("Reports/expense_2.mrt"));
report.setDictionary(dir);
report.setCalculationMode(StiCalculationMode.Interpretation);
report.Render(false);
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to do can make report get date from dateset

Post by Alex K. »

Hello,

You can find Java samples at the following link:
https://www.stimulsoft.com/en/samples/java

Thank you.
xing kenny
Posts: 4
Joined: Mon Dec 19, 2016 11:20 am

Re: How to do can make report get date from dateset

Post by xing kenny »

yes ,the 'Create Report with Relations in Runtime' sample.
But , I want to use .mrt file also.
How I can ?

before
report = StiSerializeManager.deserializeReport(new File("Reports/expense_2.mrt"));

now
StiReport report = new StiReport();

How I can make expense_2.mrt working on the last report ?

thanks!
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: How to do can make report get date from dateset

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.
Post Reply