Overloads
SaveAsHtml(string filePath)
Saves the document as an HTML file.
SaveAsHtml(Stream output)
Saves the document as HTML (UTF-8, no BOM) to a stream. The stream is left open.
SaveAsHtml(string filePath)
SaveAsHtml(string filePath)Saves the document as an HTML file.
Parameters
- filePath
- The target file path for the HTML output.
Remarks
This method saves the document as a standalone HTML file with embedded CSS styling that preserves the document's visual appearance. License validation is performed before saving. If the license is invalid, a warning is written to the console but the operation still proceeds.
SaveAsHtml(Stream output)
SaveAsHtml(Stream output)Saves the document as HTML (UTF-8, no BOM) to a stream. The stream is left open.
Parameters
- output
- A writable stream.
Examples
csharp
1var doc = new VDocs("report.docx");
2doc.SaveAsHtml("report.html");
3