Page 1 of 1

How to do can make report get date from dateset

Posted: Wed Dec 21, 2016 12:47 pm
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);

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

Posted: Wed Dec 21, 2016 8:14 pm
by Alex K.
Hello,

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

Thank you.

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

Posted: Thu Dec 22, 2016 7:00 am
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!

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

Posted: Fri Dec 23, 2016 11:24 am
by Alex K.
Hello,

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

Thank you.