Converting HTML to WORD issue

When the atached HTML file is converted to Word, information is missing. Converted doc also attached.
Code:

Document doc = new Document("0test.htm");
doc.Save("0test.doc");

Thanks!
Jon

Hello!

Thank you for your inquiry. I found several issues with this document.

  1. First of all, CSS style sheets are currently not imported from HTML. For instance blue text appears as black. This is a known issue #40 in our defect database. CSS import is planned for implementation. But it is quite complex in general case and I cannot promise you any time estimate. As a workaround you can use inline styles.

  2. Inner tables disappear from the output. This is because some closing tags are not syntactically correct:

<TABLE borderColor=black align=center border=1 class=Rates>
    <!-- End Start Rate Table  --><!-- Begin noG-noT Rate Table  -->
    <TR class=Heading>
        <TD><st1:place w:st="on"><st1:PlaceName w:st="on">Age</st1:PlaceName> <st1:PlaceType w:st="on">Range</st1:PlaceType></st1:place></TD>
        <TD>Rate</TD>
        <B style="mso-bidi-font-weight: normal">
    <TR>
        </B>
        <!-- End noG-noT Rate Table  --><!-- Begin noG-noT Rate Table  -->
    <TR class=*STYLE>
        <TD>65</TD>
        <TD>$1,300.00</TD>
        <B style="mso-bidi-font-weight: normal">
    <TR>

There should be </TR>, not <TR>.
When I corrected these tags I got the corresponding tables. We promise nothing when reading such semi-valid documents even if they are read well by other software.

  1. align=center is not supported for tables. There are also some other unsupported features.

Please consider document refactoring if only this is possible.
Regards,