MSGraph.Chart.8

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  




Answer this question

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();



  • MSGraph.Chart.8