I'm not sure if there is a better way, but after much messing around, I compared the two Excel files XML and found the section for the gridLines. Here's how I removed them:
' remove the major gridlines Dim nl As System.Xml.XmlNodeList = chart.ChartXml.GetElementsByTagName("c:majorGridlines") For i As Integer = 0 To nl.Count - 1 Dim n As System.Xml.XmlNode = nl(i) Dim pn As System.Xml.XmlNode = n.ParentNodepn.RemoveChild(n) Next
I'll see if I can add this functionallity
Comments: Have a PR here that will allow this https://epplus.codeplex.com/SourceControl/network/forks/aesalazar/Epplus/contribution/9025 Also showed someone how to do it here in C#: http://stackoverflow.com/questions/40804346/epplus-charts-without-gridlines-in-c-sharp-its-a-web-application/40809681#40809681 Ernie
' remove the major gridlines Dim nl As System.Xml.XmlNodeList = chart.ChartXml.GetElementsByTagName("c:majorGridlines") For i As Integer = 0 To nl.Count - 1 Dim n As System.Xml.XmlNode = nl(i) Dim pn As System.Xml.XmlNode = n.ParentNodepn.RemoveChild(n) Next
I'll see if I can add this functionallity
Comments: Have a PR here that will allow this https://epplus.codeplex.com/SourceControl/network/forks/aesalazar/Epplus/contribution/9025 Also showed someone how to do it here in C#: http://stackoverflow.com/questions/40804346/epplus-charts-without-gridlines-in-c-sharp-its-a-web-application/40809681#40809681 Ernie