I have tried converting HTML string to word document. But am getting error "docio support only well formatted xhtml". Here is my code sample
string htmlText = htmlContent;
WordDocument wordDocument = new WordDocument();
IWSection section = wordDocument.AddSection();
section.Body.IsValidXHTML(new XhtmlString(htmlText), wordDocument.XHTMLValidateOption);
section.Body.InsertXHTML(htmlContent);
wordDocument.Save("Sample.doc", FormatType.Html, Response, HttpContentDisposition.InBrowser);
Above is my code, can you help me in this.Thanks.,