I have a mrt-File and a json-File, those both work together fine, wenn looking at them in the designer.
But trying to do something like the following ends in a NullPointerException
Code: Select all
StiReport report = StiSerializeManager.deserializeReport(new File("report/Selection.mrt"));
StiJsonDatabase jsonDb = new StiJsonDatabase("Data", "report/data.json");
StiDatabaseCollection coll = new StiDatabaseCollection();
coll.add(jsonDb);
report.dictionary.setDatabases(coll);
report.setJsonReport(true);
report.render();
Thanks a lot in advance