Page 1 of 1
HTML designer save function
Posted: Mon Jun 10, 2019 8:10 pm
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.?
Re: HTML designer save function
Posted: Mon Jun 10, 2019 9:33 pm
by Lech Kulikowski
Hello,
You can call Save method.
Thank you.
Re: HTML designer save function
Posted: Tue Jun 11, 2019 7:25 am
by ChrisHolland
Is that the same for Javascript?
I tried this: jsReportDesigner.Save() but it says unknown function.
Re: HTML designer save function
Posted: Wed Jun 12, 2019 2:58 pm
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.
Re: HTML designer save function
Posted: Wed Jun 12, 2019 4:10 pm
by ChrisHolland
Excellent, thank you
Re: HTML designer save function
Posted: Thu Jun 13, 2019 1:14 pm
by Lech Kulikowski
Hello
Please let us know if you need any additional help.
Thank you.