SaveDocumentAsHTML Method |
Save current document as HTML file to web server.
[ JavaScript ]
document.getElementById("AceoffixCtrl1").SaveDocumentAsHTML()
With this method you will not save as HTML file in your local computer but to the web server.
The HTML file which is saved is in mht format. The mht format is a web archive format. The mht file is a Web page as a single file that includes an .htm file and all supporting files, such as images, cascading style sheets, scripts, and more.
![]() |
---|
This method only applies to Office2003 or a later version. If you want to save document as HTML file, you must set the Aceoffix.AceoffixCtrl.SaveFilePage property. In SaveFilePage, you can get the mht file which the current document is saved as. |
document.getElementById("AceoffixCtrl1").SaveDocumentAsHTML();