Hi
Actually i have a excel template, so i will copy the template and i will fill the data by using open xml, so that is fine, but i want to hide the grid line in each sheet, so i tried using below code, but i could not able to do it, because"Sheets" is always null so it won't enter into the if condition, can you tell me is any other way there to hide the grid lines
using (var document = SpreadsheetDocument.Open(newFileName, true)) { SheetViews sheets = document.WorkbookPart.Workbook.GetFirstChild<SheetViews>(); if (sheets != null) { foreach (SheetView sheet in sheets ) { } } }