static void Main(string[] args)
        {
            using (HtmlToDocxConverter converter = new HtmlToDocxConverter())
            {
                converter.ConvertHtmlToDocx("sample.html", "result.docx");
            }

            // Open result file in default DOCX associated application
            Process.Start("result.docx");
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            using (HtmlToDocxConverter converter = new HtmlToDocxConverter())
            {
                converter.ConvertHtmlToDocx("sample.html", "result.docx");
            }

            // Open result document in default associated application (for demo purpose)
            ProcessStartInfo processStartInfo = new ProcessStartInfo("result.docx");

            processStartInfo.UseShellExecute = true;
            Process.Start(processStartInfo);
        }