Convert Html To Word Document

Hi,

I have to convert (Export) html to word document, but facing many issues.
Seems like it does not support <link>  <style> tags.
But I need css styles from referenced css files.

Please find attached file. Attached file Partial View in MVC and I have to export partial view content to word document.
Kindly help me to get the solution.

Thanks & Regards,
Suchita

Attachment: _TransferCertificate_5768c588.zip

1 Reply 1 reply marked as answer

HC Hemalatha Chiranjeevulu Syncfusion Team March 22, 2021 11:18 AM UTC

Hi Suchita,

Thank you for contacting Syncfusion support.

On further analyzing, we have found that you have provided cshtml file. The CSS file given in the html string are get from server. DocIO does not have support to get the file from the server. DocIO only supports HTML with XHTML 1.0 standard for HTML conversion. And also, the given html string contains external CSS. Currently, DocIO doesn’t provide full-fledged support for CSS style in HTML to Word conversion. The mentioned <link> and <style> tag in the given html string are referred as external CSS which is not supported in DocIO when appending HTML in Word document. We have already logged the feature request for this similar kind of requirement. We also considered your scenario in that feature implementation. We don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features. We will let you know when this feature is implemented.

You can track the status of this feedback from the below link:
https://www.syncfusion.com/feedback/11547/complete-css-support-in-html-to-word-conversion

Please refer the below UG documentation for HTML conversion:
https://help.syncfusion.com/file-formats/docio/html

Please let us know if you have any other questions.

Regards,
Hemalatha C


Marked as answer
Loader.
Up arrow icon