HTML designer save function

Stimulsoft Reports.WEB discussion
Post Reply
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

HTML designer save function

Post by ChrisHolland »

Is there a way to call the HTML designer save or save as function from an external button, as if the user has clicked on File - Save from the menu.?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: HTML designer save function

Post by Lech Kulikowski »

Hello,

You can call Save method.

Thank you.
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: HTML designer save function

Post by ChrisHolland »

Is that the same for Javascript?

I tried this: jsReportDesigner.Save() but it says unknown function.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: HTML designer save function

Post by HighAley »

Hello, Chris.

If you want to save the report that is opened in the HTML5 designer you could use next code:

Code: Select all

//where jsStiWebDesigner1 - "js" + designer ID
jsStiWebDesigner1.ExecuteAction("saveReport"); // emulate the Save button
jsStiWebDesigner1.ExecuteAction("saveAsReport"); // emulate the Save as button
Thank you.
ChrisHolland
Posts: 45
Joined: Tue May 21, 2019 1:44 pm

Re: HTML designer save function

Post by ChrisHolland »

Excellent, thank you
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: HTML designer save function

Post by Lech Kulikowski »

Hello

Please let us know if you need any additional help.

Thank you.
Post Reply