Remove CSS Word Doc?

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

1 Reply

SK Sathish K Syncfusion Team 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


Loader.
Up arrow icon