Reading in HTML?

Jan 22, 2016 at 4:29 PM
I am trying to load html files and then send them to the user as Excel file on a web app. With Excel, you just open the html file and it converts it to an Excel file, retaining all the style.

Is there a way with EPPlus to read in an html file that would keep all the style? For example, my html file looks like this:
<table cellspacing="0" cellpadding="0" rules="all" style="border-width:1px;border-style:solid;width:439px;border-collapse:collapse;">
    <COLGROUP><col width=200px><col width=80px><col width=80px><col width=79px></COLGROUP>
    <tr style="height:17px;">
        <td align="left" valign="top" style="color:windowtext;background-color:window;"></td><td align="center" valign="middle" colspan="3" rowspan="1" style="color:White;background-color:DarkBlue;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Status</td>
    </tr><tr style="height:28px;">
        <td align="left" valign="top" style="color:windowtext;background-color:window;"></td><td align="right" valign="top" style="color:Black;background-color:Tan;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">#</td><td align="right" valign="top" style="color:Black;background-color:Tan;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Avg. Time (min)</td><td align="right" valign="top" style="color:Black;background-color:Tan;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Median (min)</td>
    </tr><tr style="height:17px;">
        <td align="left" valign="top" style="color:Black;background-color:AntiqueWhite;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Respondents</td><td align="right" valign="middle" style="color:windowtext;background-color:window;">854</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">6</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">2</td>
    </tr><tr style="height:17px;">
        <td align="left" valign="top" style="color:Black;background-color:AntiqueWhite;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Completes</td><td align="right" valign="middle" style="color:windowtext;background-color:window;">160</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">21</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">20</td>
    </tr><tr style="height:17px;">
        <td align="left" valign="top" style="color:Black;background-color:AntiqueWhite;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Incompletes</td><td align="right" valign="middle" style="color:windowtext;background-color:window;">261</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">2</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">0</td>
    </tr><tr style="height:17px;">
        <td align="left" valign="top" style="color:Black;background-color:AntiqueWhite;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">Terminates</td><td align="right" valign="middle" style="color:windowtext;background-color:window;">406</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">2</td><td align="right" valign="middle" style="color:Black;background-color:White;font-family:Arial;font-size:8pt;font-weight:normal;font-style:normal;text-decoration:none;">2</td>
    </tr>

</table>