Currently using VS2012 , and I have done it as follows:
Excel.Application oXl = new Excel.Application(); oXl.Visible = false; // true for debug Excel.Workbook wb = oXl.Workbooks.Add(); Excel.Worksheet ws = wb.Worksheets[1]; oXL.ActiveWindow.DisplayGridlines = false; //true is the default in Excel
Humbert
source share