Normalmente, il layout dei tag div viene ignorato durante il caricamento di HTML in un oggetto del foglio di calcolo di Excel. Tuttavia, se si desidera che il layout dei tag div non venga ignorato, impostare la proprietà HtmlLoadOptions.SupportDivTag su true. Il valore predefinito di questa proprietà è falso.
Supporta il layout dei tag DIV durante il caricamento di HTML nell’oggetto foglio di calcolo Excel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stringexport_html = " <html> <body> <table> <tr> <td> <div>This is some Text.</div> <div> <div> <span>This is some more Text</span> </div> <div> <span>abc@abc.com</span> </div> <div> <span>1234567890</span> </div> <div> <span>ABC DEF</span> </div> </div> <div>Generated On May 30, 2016 02:33 PM <br />Time Call Received from Jan 01, 2016 to May 30, 2016</div> </td> <td> <img src='ASpose_logo_100x100.png' /> </td> </tr> </table> </body> </html>";