This property sets and gets the full document as HTML string. When this property
is set the current content of the document is replaced with the HTML string
provided.
function SaveHtmlToDisk(filePath)
{
var box = scene.getBoxById("htmlBox");
if (box)
{
var fileStream = shell.serviceManager.basics.fileStream;
if (fileStream)
{
fileStrm.openForWrite(filePath, true, true);
var streamWriter = shell.serviceManager.basics.rawStreamWriter;
streamWriter.stream = fileStrm;
streamWriter.writeString(box.html, "utf-8");
fileStrm.close();
}
}
}