Free Support Forum - aspose.com

How to know format cell (background color)

Hi,

I need to know background colour in specific cell.

How to do this?

Thanks,

Best regards,

Hello

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please try using the following code:

Document doc = new Document("C:\\Temp\\in.doc");

foreach (Cell cell in doc.GetChildNodes(NodeType.Cell, true))

{

Console.WriteLine(cell.CellFormat.Shading.BackgroundPatternColor.Name);

}

Best regards,

Hello,

This code don’t show the background color.

The result is "0"

And I attach my document.

Best regards,

Hello

Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

The issues you have found earlier (filed as 26964) have been fixed in this .NET update and in this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(5)