Hi,
I have an issue when converting word to HTML . I need to apply Encoding UTF8
Currently I have found some alternative for it. Can you please let me know easiest way to do the same.
Document doc = new Document();
doc.LoadFromFile(@"D:\Batch\myDoc.doc");
string htmlstring = string.empty;
using (MemoryStream ms = new MemoryStream())
{
doc.SaveToStream(ms, FileFormat.Html);
htmlstring = System.Text.Encoding.UTF8.GetString(ms.ToArray());
StreamWriter wr = new StreamWriter(@"D:\Batch\myHTMLDoc.htm);
wr.Write(htmlstring );
wr.Close();
}