Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Problem to get value

$
0
0
Hi,
I do not get the value of cell.StyleIndex.Value, within the following codes
                                WorksheetPart worksheetPart = (WorksheetPart)workbookPart.GetPartById(sheet.Id);
                                WorkbookStylesPart wstylePart = workbookPart.WorkbookStylesPart;
                                Stylesheet ss = wstylePart.Stylesheet;

                                foreach (Cell cell in worksheetPart.Worksheet.Descendants<Cell>())
                                {
                                    if (cell.StyleIndex != null)
                                    {
                                    ...


against this file. Why?


Many Thanks & Best Regards, Hua Min


Viewing all articles
Browse latest Browse all 1288