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

How to hide grid lines by using open xml

$
0
0

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 )
                        {
                        }
                    }
}


Viewing all articles
Browse latest Browse all 1288

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>