GroupDocsGists
10/24/2017 - 7:09 AM

Examples-GroupDocs.Viewer.Examples.CSharp-GroupDocs.Viewer.Examples-Utilties-SaveAsHTML.cs

// For complete examples and data files, please go to https://github.com/groupdocsviewer/GroupDocs_Viewer_NET
// set an html file name with absolute path
String fname = Path.Combine(Path.GetFullPath(OutputHtmlPath), Path.GetFileNameWithoutExtension(filename) + ".html");
               
// create a file at the disk
System.IO.File.WriteAllText(fname, content);