here is the sample code i used to test aspose.cell and make utilize component in my application. The main usage in component is HtmlString property of Cell to insert HTML content in a cell. some times my HTML content could be bit complex.
oCell = oWorksheet.Cells[1, 2]; oCell.HtmlString = “Welcome”; // OK oCell = oWorksheet.Cells[4, 2]; oCell.HtmlString = “Welcome Srinu”; // Not OK: displaying like Welcome + sqare box + srinu oCell = oWorksheet.Cells[6, 2]; oCell.HtmlString = “test Image ”; // Not OK: displaying like test Image + sqare box, i didn’t see any image here even image is available at given path oCell = oWorksheet.Cells[8, 2]; oCell.HtmlString = “test Table
first column
second column
1
2
”; // Not OK; displaying like
test
Tablefirst columnsecond
column12
oXLSDoc.Save(@"D:\testExcel.xls");
Could you please suggest me how can i see this html output in a Cell like how we are seeing the same html on web page? Is there any Aspose.Cell properties/methods to achieve my requirement??
Well, I am afraid, the Html tags/attributes like Br, Table, Img are not supported. These will be supported after we incorporate Import Html feature to the product. Anyways, I have logged it into our issue tracking system with an issue id: CELLSNET-17515.
By the way, I think you may use Style formatting options (provided by Aspose.Cells API) to format your selective data in a cell, you can use borders options to implement table attributes. Similarly you can insert images using Aspose.Cells for .NET API. I will mention here some documents for your reference:
Hi, can i know for which HTML tags it will not support , i.e u told that , like ,
are not supported, is there any other tags is there ? can u please send that list. or if it is working fine to all tags then provide that version name.for purchasing.
We did support some more Htmt Tags in HtmlString proprty in recent versions. We recommend you to use Aspose.Cells for .NET v6.0.1.9: Please download: Aspose.Cells for .NET v6.0.1.9
If there are some html tags that are still not supported and you need them urgently, we will try to support the tags one by one.
Well, I am afraid, as we told you we do not support tag in HTML format, we might not support it in near future as well. At the moment, you may only use Aspose.Cells APIs to add pictures or images to the cells as per MS Excel.
We are sorry for your inconvenience caused!
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.