locked
Setting Data Label position RRS feed

  • Question

  • User-739425036 posted

    hi all am trying to set DataLabel Position of PowerPoint chart to out side , for this am using this code

     Dim Labelseries As Graph.Series

    Dim pts As Graph.Points

    Dim pt As Graph.Point

    Labelseries = gphChart.SeriesCollection(1)

    Labelseries.HasDataLabels = True

    pts = Labelseries.Points

    For Each pt In pts

    pt.DataLabel.Position = Graph.XlDataLabelPosition.xlLabelPositionAbove

    Next pt

    it is working fine with Line chart but when trying to use with stack chart a error is occouring like this

      System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800A03EC.

    can anybody help me

    regards

    thanks

     

    Saturday, April 4, 2009 4:05 AM