using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.IO;
using Docs.Word;



namespace ConverterSample1
{
	class Program
	{
		static void Main(string[] args)
		{
            // Set License Code for Full Version
            // Document.SetLicenseCode("YOUR-LICENSE-CODE-HERE");

			//	Define names of source and result files
			//	Change the extension of result file if you change the output format
            string SourceFileName = @"..\..\..\WordDoc.docx";
			string OutputFileName = @"test1.html";

			//	Convert from Word to Html string
            string html = Converter.ConvertWordToHtml(SourceFileName, Encoding.Default);
			
			//	Save and Open result file
            File.WriteAllText(OutputFileName, html);
            Process.Start(OutputFileName);
		}
	}
}
