Search found 4 matches

by xing kenny
Thu Dec 22, 2016 7:00 am
Forum: Stimulsoft Reports.JAVA
Topic: How to do can make report get date from dateset
Replies: 3
Views: 2725

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

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 repo...
by xing kenny
Wed Dec 21, 2016 12:47 pm
Forum: Stimulsoft Reports.JAVA
Topic: How to do can make report get date from dateset
Replies: 3
Views: 2725

How to do can make report get date from dateset

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 StiDatabas...
by xing kenny
Wed Dec 21, 2016 11:04 am
Forum: Stimulsoft Reports.JAVA
Topic: How I can use a JSON file to create a StiJsonDatabase
Replies: 3
Views: 9274

Re: How I can use a JSON file to create a StiJsonDatabase

got it.

new StiJsonDatabase("Data", new File("Data/auDemo2.json"));

There the "Data" , first parameter of the StiJsonDatabase method , should same with the datasource's name that named in the designer.

thanks!
by xing kenny
Mon Dec 19, 2016 12:06 pm
Forum: Stimulsoft Reports.JAVA
Topic: How I can use a JSON file to create a StiJsonDatabase
Replies: 3
Views: 9274

How I can use a JSON file to create a StiJsonDatabase

hello! I have read the topic 'Example of rendering a report with Java and Json?' https://forum.stimulsoft.com/viewtopic.php?f=19&t=54471 And I think the following codes should work. report = StiSerializeManager.deserializeReport(new File("Data/AuDemo.mrt")); File file = new File("...