HTML designer save function

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

HTML designer save function

Post by ChrisHolland » Mon Jun 10, 2019 8:10 pm

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: 1421
Joined: Tue Mar 20, 2018 5:34 am

Re: HTML designer save function

Post by Lech Kulikowski » Mon Jun 10, 2019 9:33 pm

Hello,

You can call Save method.

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

Re: HTML designer save function

Post by ChrisHolland » Tue Jun 11, 2019 7:25 am

Is that the same for Javascript?

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

Re: HTML designer save function

Post by HighAley » Wed Jun 12, 2019 2:58 pm

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: 23
Joined: Tue May 21, 2019 1:44 pm

Re: HTML designer save function

Post by ChrisHolland » Wed Jun 12, 2019 4:10 pm

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

Re: HTML designer save function

Post by Lech Kulikowski » Thu Jun 13, 2019 1:14 pm

Hello

Please let us know if you need any additional help.

Thank you.
Post Reply