I'm having trouble converting docx to html with external styles.
I'm using following code:
- Code: Select all
Document doc = new Document();
doc.LoadFromFile("D:\\ManagingImportantRecords.docx");
doc.HtmlExportOptions.CssStyleSheetType = CssStyleSheetType.External;
doc.SaveToFile("D:\\aaa\\ManagingImportantRecords.html", FileFormat.Html);
alldough conversion is ok, and I get external css file with styles and classes, a lot of styles remains inline with Html document.
Am I doing something wrong or is there another way to do this without styles remaining inline?
Thanks,
Dragan