Page 1 of 1
Java Web designer (trial) fail to save report
Posted: Wed Apr 01, 2015 2:40 pm
by smartleopard
Hi,
I'm new in Stimulsoft world

, i just downloaded stimulsoft for java and ran the existing webdesigner project in the sample folder with Eclipse IDE.
I designed a sample report to test stimulsoft features, when i try to save the report, a dialog is displayed and requests for report name, after that i fill the report name and press ok, nothing happen! Is it the trial version restriction?!
Thx in advance
Re: Java Web designer (trial) fail to save report
Posted: Thu Apr 02, 2015 6:00 am
by Vadim
Hello.
Save action invokes in method onSaveReportTemplate(StiReport report, String reportName, HttpServletRequest request) in file \Samples\webdesigner\index.jsp
You should implement it in your own way.
smartleopard wrote:Hi,
I'm new in Stimulsoft world

, i just downloaded stimulsoft for java and ran the existing webdesigner project in the sample folder with Eclipse IDE.
I designed a sample report to test stimulsoft features, when i try to save the report, a dialog is displayed and requests for report name, after that i fill the report name and press ok, nothing happen! Is it the trial version restriction?!
Thx in advance
Re: Java Web designer (trial) fail to save report
Posted: Thu Apr 02, 2015 11:51 am
by smartleopard
Hi,
Thanks for your reply, so you mean that the code in index.jsp that is as below:
public void onSaveReportTemplate(StiReport report, String reportName, HttpServletRequest request){
try{
FileOutputStream fos = new FileOutputStream(savePath + reportName + ".mrt");
StiSerializeManager.serializeReport(report, fos);
fos.close();
} catch (Exception e){
e.printStackTrace();
}
}
doesn't do the report save operation? I must change the code?
Thx in advance
Re: Java Web designer (trial) fail to save report
Posted: Thu Apr 02, 2015 12:21 pm
by Vadim
Hello.
Yes, you right. You must change code to save report as your requirement.
smartleopard wrote:Hi,
Thanks for your reply, so you mean that the code in index.jsp that is as below:
public void onSaveReportTemplate(StiReport report, String reportName, HttpServletRequest request){
try{
FileOutputStream fos = new FileOutputStream(savePath + reportName + ".mrt");
StiSerializeManager.serializeReport(report, fos);
fos.close();
} catch (Exception e){
e.printStackTrace();
}
}
doesn't do the report save operation? I must change the code?
Thx in advance