We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set background color in html smart marker

I would like to set backgound color in the cell while im using the smart marker with html
for example, I have the value (in type object, array)

my test

the smart marker as usual will be $=myvalue(HTML)

the rendering will expose the text " my test" with font color blue - but the background will stay white.
any idea what to do? I have tried also with “p” instead of div - but still no success



Aspose.Cells follows MS Excel standards when specifying or parsing HTML strings. You need to specify hex codes for shading colors but in the following way. Please try the following HTML string instead, it will work fine as I tested:
"<Font Style=\"FONT - FAMILY: Calibri; FONT - SIZE: 11pt; COLOR: #0000FF;Background-Color: #ff0000;\">my test</Font>"