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

Create if not existed

$
0
0
Hi,
I want to create Worksheet with name vSN, if it IS NOT existing on Workbook. How?
                            IEnumerable<Sheet> sheets = spreadSheet.WorkbookPart.Workbook.Descendants<Sheet>().Where(s => s.Name == vSN);
                            if (sheets.Count() == 0)
                            {
                                ...
                            }



Many Thanks & Best Regards, Hua Min


Viewing all articles
Browse latest Browse all 1288