Back to VDocs
SaveAsHTMLMethod
Definition
- Namespace
- DOM
- Assembly
- VDocs.dll
Saves the document as an HTML file.
SaveAsHTML(string filePath)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.
Examples
csharp
1var doc = new VDocs("report.docx");
2doc.SaveAsHTML("report.html");
3