I’ve Aspose.Cells 220.127.116.11.
I’ve a question about formating Background-color cell with HTML.
I Set HtmlString Property with some attributes
excelSheet.Cells(0, 0).HtmlString = “<Font Style=”“FONT-WEIGHT: bold;FONT-FAMILY: Arial;FONT-SIZE: 12pt;COLOR: #ff0000;Background-Color:yellow;”">myValue"
After applying this style, Cell’s background-color isn’t yellow.
I don’t want Set Cell’s Style throught SetStyle() Method.
How Can I Solve?
Thanks for using Aspose.Cells.
Please download and try the latest version: Aspose.Cells for .NET (Latest Version) and let us know your feedback.
The latest version works fine now and you can set the cell background using html string. Please see the following sample code and its output which I have attached with this post for your reference.
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets;
Cell cell = worksheet.Cells[“E4”];
cell.HtmlString = “<Font Style=“FONT-WEIGHT: bold;FONT-FAMILY: Arial;FONT-SIZE: 12pt;COLOR: #ff0000;Background-Color:yellow;”>myValue”;
The issues you have found earlier (filed as CELLSNET-43218) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Shakeel Faiz,