none
Save chart / table as an image in Presentation RRS feed

  • Question

  • HI All

    Already managed to save the slide as a file image, can you save the elements separately as image, example:

    Save the chart as an image.
    Save the table as an image.

    Thank U.

    Wednesday, May 6, 2015 8:49 AM

Answers

  • HI,

    >>Save chart / table as an image in Presentation

    You could use Chart.ExportMethod to convert a chart to an image, the following code could be referred as an
    example

    Sub ConvertChart()
    
    
    Dim sp As shape
    Set sp = ActivePresentation.Slides(1).shapes(1)
    If sp.HasChart Then
    sp.Chart.Export "D:\demo.png", "png", True
    
    End If
    End Sub

    And I'm afraid there is an export method for a table to be an image, but you could copy and paste the table as an image in the slide, extract the image, then delete the pasted the image on the slide as an alternative solution.

    Hope this could help you.

    Best Regards

    Lan


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, May 7, 2015 4:30 AM
    Moderator

All replies

  • HI,

    >>Save chart / table as an image in Presentation

    You could use Chart.ExportMethod to convert a chart to an image, the following code could be referred as an
    example

    Sub ConvertChart()
    
    
    Dim sp As shape
    Set sp = ActivePresentation.Slides(1).shapes(1)
    If sp.HasChart Then
    sp.Chart.Export "D:\demo.png", "png", True
    
    End If
    End Sub

    And I'm afraid there is an export method for a table to be an image, but you could copy and paste the table as an image in the slide, extract the image, then delete the pasted the image on the slide as an alternative solution.

    Hope this could help you.

    Best Regards

    Lan


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, May 7, 2015 4:30 AM
    Moderator