How to do can make report get date from dateset
Posted: Wed Dec 21, 2016 12:47 pm
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);
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);