none
Extracting each step of a Powerpoint slide as an image. RRS feed

  • Question

  • Hello,

    Saving a Powerpoint presentation as a series of slide image files is easy with the SaveCopyAs method call from the Presentation object:

      Application app = new Microsoft.Office.Interop.PowerPoint.Application();
      Presentations presentations = app.Presentations;
    
      Presentation presentation = presentations.Open(@"C:\presentation.ppt", MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);
      presentation.SaveCopyAs(@"C:\presentation.png", Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType.ppSaveAsPNG, MsoTriState.msoTrue);
    

    But what if some of those slides have several steps and we'd like to have individual slide images for each step instead of just one image of the last step? Is there a way to achieve this kind of extract programmatically? 

    Thanks.
    • Moved by eryang Tuesday, November 30, 2010 2:17 AM Move to Office forum for better support. (From:.NET Base Class Library)
    Monday, November 29, 2010 6:40 PM

Answers

  • Hello again Georges,

    Thanks for your further information. Now I could get a better understand on this topic. Based on my knowledge, there is not a way exposed by PowerPoint Object Model to save each animation step as an image. For more information, you also could try to ask in Answer site. Although that site is for end-user issues, you also will find more specialists on PowerPoint object model and get more help there. Actually, in this forum, there are few specialists on PowerPoint. 

    Microsoft Office PowerPoint Forums:
    http://social.answers.microsoft.com/Forums/en-IN/category/officeppt.

    Thanks for your understanding. Please feel free to update here, if you have any concern. Have a nice day.

    Best regards,
    Bessie Zhao - MSFT
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Bessie Zhao Monday, December 6, 2010 7:12 AM
    Wednesday, December 1, 2010 8:06 AM

All replies

  • Try the Office programming forums at http://social.msdn.microsoft.com/Forums/en-US/category/officedev

    It does not look like you are talking about any class in the .Net BCL.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Monday, November 29, 2010 7:58 PM
  • Hello "DeveloperGeorge",

    Thanks for posting. Actually, I am not very clear about this topic. Would you please clarify the point as below for me?

    From what you side, it seems that you want to save one image for each step. Right? What do you mean each step?

    If you mean save several slides as one image, unfortunately, there is no a way for this goal exposed by PowerPoint object model. Thanks?

    If you have any concern on this post, just feel free to follow up. Have a nice day.

    Best regards,
    Bessie Zhao - MSFT
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Tuesday, November 30, 2010 9:55 AM
  • Hello Sheng,

    Thank you for moving this thread to the appropriate forum.

     

    Hello Bessie,

    For a slide we can have multiple content animation steps in them that we need to incrementally go through before displaying the full content of the slide.

    For instance, a slide can contain 3 bulleted sentences. The first step of that slide will display the first bullet only. The second step will display the first and second bullet. The third and last step will display all three bullets hence displaying the full content of that one slide.

    When exporting that slide as an image it will export it in its last step with all the content displayed. Instead I would like to have three images exported from that slide, one for every step.

    Thanks,

     - Georges

    Tuesday, November 30, 2010 4:41 PM
  • Hello again Georges,

    Thanks for your further information. Now I could get a better understand on this topic. Based on my knowledge, there is not a way exposed by PowerPoint Object Model to save each animation step as an image. For more information, you also could try to ask in Answer site. Although that site is for end-user issues, you also will find more specialists on PowerPoint object model and get more help there. Actually, in this forum, there are few specialists on PowerPoint. 

    Microsoft Office PowerPoint Forums:
    http://social.answers.microsoft.com/Forums/en-IN/category/officeppt.

    Thanks for your understanding. Please feel free to update here, if you have any concern. Have a nice day.

    Best regards,
    Bessie Zhao - MSFT
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    • Marked as answer by Bessie Zhao Monday, December 6, 2010 7:12 AM
    Wednesday, December 1, 2010 8:06 AM
  • Hello again Georges,

    I am writing to check the status of the issue on your side. If you have any questions or concerns, please feel free to let me know, or unmark it back. Thanks.

    Best regards,
    Bessie Zhao - MSFT
    MSDN Subscriber Support in Forum
    If you have any feedback of our support, please contact msdnmg@microsoft.com.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Monday, December 6, 2010 7:09 AM