Java Web designer (trial) fail to save report

Stimulsoft Reports.JAVA discussion
Post Reply
smartleopard
Posts: 22
Joined: Wed Apr 01, 2015 2:29 pm

Java Web designer (trial) fail to save report

Post 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
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Java Web designer (trial) fail to save report

Post 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
smartleopard
Posts: 22
Joined: Wed Apr 01, 2015 2:29 pm

Re: Java Web designer (trial) fail to save report

Post 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
Vadim
Posts: 409
Joined: Tue Apr 23, 2013 11:23 am

Re: Java Web designer (trial) fail to save report

Post 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
Post Reply