We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Remove CSS Word Doc?

Thread ID:

Created:

Updated:

Platform:

Replies:

120115 Sep 1,2015 08:44 PM UTC Sep 2,2015 07:06 AM UTC WinForms 1
loading
Tags: DocIO
Stephen Karl
Asked On September 1, 2015 08:44 PM UTC

Hello,

I'm trying to export a Word Document to HTML using the DocIO.Web dll.  I'm running into an issue where there is a big chunk of CSS above the actual converted document wrapped in body{}.  Is there a way to programmatically remove the word doc CSS?

Here is how I have tried to remove the CSS so far:

         For Each section As Syncfusion.DocIO.DLS.WSection In wordDoc.Sections
            section.HeadersFooters.EvenFooter.ChildEntities.Clear()
            section.HeadersFooters.EvenHeader.ChildEntities.Clear()
            section.HeadersFooters.FirstPageFooter.ChildEntities.Clear()
            section.HeadersFooters.FirstPageHeader.ChildEntities.Clear()
            section.HeadersFooters.Footer.ChildEntities.Clear()
            section.HeadersFooters.Header.ChildEntities.Clear()
            section.HeadersFooters.OddFooter.ChildEntities.Clear()
            section.HeadersFooters.OddHeader.ChildEntities.Clear()

         Next

Am I possibly just missing a property some place to remove the CSS?  That seems to be about the last portion of the doc I can't remove via the conversion from Word to HTML.  I'm using version 13.2.0.29 currently if that makes a difference.

Thanks

Sathish K [Syncfusion]
Replied On September 2, 2015 07:06 AM UTC

Hi Stephen,

Thank you for contacting Syncfusion support.

A support incident to track the status of the reported issue has been created under your account. Please log on to our support website to check for further updates,

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.

Regards,
Sathish


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;