I am using this interop to build graphs inside the word document templates. Can someone tell me how can I hide the X and Y axis gridlines
I am using this interop to build graphs inside the word document templates. Can someone tell me how can I hide the X and Y axis gridlines
MSGraph.Chart.8
Binary
Found the answer !!!
//hide majorgridline, minorgridline
Microsoft.Office.Interop.Graph.Axis axis;
axis = (Microsoft.Office.Interop.Graph.Axis)barGraph.Axes(Microsoft.Office.Interop.Graph.XlAxisType.xlValue, Microsoft.Office.Interop.Graph.XlAxisGroup.xlPrimary);
axis.HasMajorGridlines = false;
axis.HasMinorGridlines = false;
axis.TickLabels.Delete();