Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
The word document in attachment is a minimal example of a file that cannot be exported to html by Syncfusion.DocIO.DLS.HTMLExpor
It throws an error about an invalid character, but that character is not part of the Word text. I tried
doc.Replace(System.Text.RegularExpressions.Regex("[\x00-\x08\x0B\x0C\x0E-\x1F]"),"")
but to no avail. When doing doc.GetText(), it does show up.
I'm using the latest version via NuGet 17.1.0.53
Trace:
System.ArgumentException: ' ', hexadecimal value 0x01, is an invalid character.
at System.Xml.XmlUtf8RawTextWrite
at System.Xml.XmlUtf8RawTextWrite
at System.Xml.XmlUtf8RawTextWrite
at System.Xml.XmlWellFormedWriter
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor
at Syncfusion.DocIO.DLS.HTMLExpor