Any idea where the setting is hiding for turning gridlines off while using excel 2003 from interop?
Asked
Active
Viewed 1.0k times
5 Answers
11
DisplayGridlines is a method on an Excel Window object. For example:
ActiveWindow.DisplayGridlines = true

Jon Fournier
- 4,299
- 3
- 33
- 43
2
Currently, using VS2012
and I did 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

shruti1810
- 3,920
- 2
- 16
- 28

Humbert
- 41
- 2
-
I have not set them, and they are off, so I'm not sure true is the default. – B. Clay Shannon-B. Crow Raven Nov 25 '15 at 23:39
1
ActiveWorkbook.Windows(1).DisplayGridlines = True 'OR False

maialithar
- 3,065
- 5
- 27
- 44

shahkalpesh
- 33,172
- 3
- 63
- 88