Can Excel interpret a cell as HTML?

前端 未结 4 948
小鲜肉
小鲜肉 2020-12-05 14:11

I\'m using Aspose.Cells to build an Excel document programmatically. This works great. One of the cells, though, is a block of raw HTML. I\'m wondering if it is possible to

4条回答
  •  一个人的身影
    2020-12-05 14:27

    Unfortunately the answer is no.

    Excel has two HTML options:

    • Open a HTML file, which will sort of render the HTML, sort of, but won't contain any actual HTML in cells
    • Store HTML in cells, but as unformatted text.

    You could, maybe possibly, come up with a macro that lets you enter HTML into a cell, then saves that HTML as a document, opens it up in another instance of Excel, then grabs that formatted HTML and places it in the original document; that way you would have two columns, one with the HTML, and one with the output. It would be very unsightly though. Don't do it :0)

提交回复
热议问题