Converting html to docx containing tables and td elements without tag wrappers

Home Forums Open-Xml-PowerTools Converting html to docx containing tables and td elements without tag wrappers

This topic contains 0 replies, has 1 voice, and was last updated by  langhorstg 1 year, 8 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #11008

    langhorstg
    Participant

    I am getting an exception when converting HTML to DOCX using the HtmlToWmlConverter when the content includes td elements without child tag wrappers.

    For example, the following throws an exception.

    <table>
    <tr>
    <td>
    This throws an error on conversion.
    </td>
    </tr>
    </table>

    However, the following works:

    <table>
    <tr>
    <td>
    <span>Works as expected with span wrapper.</span>
    </td>
    </tr>
    </table>

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.