save report in specified location
save report in specified location
I tried to save report as follows.
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
designer.onSaveReport = function (event) {
var jsonStr = event.report.saveToJsonString();
console.log("saving a report");
Stimulsoft.System.StiObject.saveAs(jsonStr, event.fileName + ".mrt", "application/json;charset=utf-8");
}
Report saved in my Downloads folder.
I want to save report in specified folder like "C:\\Reports\".
Much appreciate if anyone can help to my problem.
Thank you
var designer = new Stimulsoft.Designer.StiDesigner(options, "StiDesigner", false);
designer.onSaveReport = function (event) {
var jsonStr = event.report.saveToJsonString();
console.log("saving a report");
Stimulsoft.System.StiObject.saveAs(jsonStr, event.fileName + ".mrt", "application/json;charset=utf-8");
}
Report saved in my Downloads folder.
I want to save report in specified folder like "C:\\Reports\".
Much appreciate if anyone can help to my problem.
Thank you
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: save report in specified location
Hello,
Do you want to save the report on the client-side in the specified folder?
Thank you.
Do you want to save the report on the client-side in the specified folder?
Thank you.
Re: save report in specified location
Yes...I want to save it client-side in the specified folder path.
From the above way it saved in "Downloads" folder.
I want to save report in given folder path like "C:\\Reports\".
Thank You
From the above way it saved in "Downloads" folder.
I want to save report in given folder path like "C:\\Reports\".
Thank You
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: save report in specified location
Hello,
Due to the browser security limitations, it is not possible to specify a folder on the client side.
Thank you.
Due to the browser security limitations, it is not possible to specify a folder on the client side.
Thank you.
Re: save report in specified location
Hi Lech,
Thank you for your response.
So this can achieve only on server side.
<cc1:StiWebDesigner ID="StiWebDesigner1" runat="server"
OnCreateReport="StiWebDesigner1_CreateReport"
OnPreviewReport="StiWebDesigner1_PreviewReport"
OnSaveReport="StiWebDesigner1_SaveReport" />
If so, if I try this way can I create a report on client side. not from server side event. Because our main purpose is to use client side functionalities as much as possible.
Looking forward your response.
Thank You
Thank you for your response.
So this can achieve only on server side.
<cc1:StiWebDesigner ID="StiWebDesigner1" runat="server"
OnCreateReport="StiWebDesigner1_CreateReport"
OnPreviewReport="StiWebDesigner1_PreviewReport"
OnSaveReport="StiWebDesigner1_SaveReport" />
If so, if I try this way can I create a report on client side. not from server side event. Because our main purpose is to use client side functionalities as much as possible.
Looking forward your response.
Thank You
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: save report in specified location
Hello,
Due to the browser security limitations, it is not possible to specify a folder on the client side.
Thank you.
Due to the browser security limitations, it is not possible to specify a folder on the client side.
Thank you.
Re: save report in specified location
Hi Lech
Still it is not possible to download the file in specific folder in client side?
Still it is not possible to download the file in specific folder in client side?
-
- Posts: 6245
- Joined: Tue Mar 20, 2018 5:34 am
Re: save report in specified location
Hello,
No. It is not possible.
Thank you.
No. It is not possible.
Thank you.