Thursday, September 24, 2015

asp.net telerik convert docx to html

   public static string ConvertDocxToHtml(byte[] binaryData)
        {
            DocxFormatProvider docxProvider = new DocxFormatProvider();
            RadFlowDocument flowDoc = docxProvider.Import(binaryData);

            HtmlFormatProvider htmlProvider = new HtmlFormatProvider();
            string result = htmlProvider.Export(flowDoc);

            return result;
        }

No comments:

Post a Comment