Any idea where the setting is hiding for turning gridlines off while using excel 2003 from interop?
DisplayGridlines is a method on an Excel Window object. For example:
ActiveWindow.DisplayGridlines = true
using Excel = Microsoft.Office.Interop.Excel;
Excel.Application oXL;
oXL.Windows.get_Item(1).DisplayGridlines = false;
oXL.Windows.Application.ActiveWindow.DisplayGridlines = false;
write the code just before save excel code line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With