none
How to set presentation properties in C++? (PowerPoint 2010) RRS feed

  • Question

  • I am working in vc++2010,using MFC and PowerPoint 2010 c++ automation interfaces.

    Following is my code:

    // First,I load PowerPoint 2010 c++ automation library.
    
        CApplication0 app; 
        CPresentations0 Presentations;
        CPresentation0 Presentation;
        long lValue;
        
        //...Do initializtion work
        
        //Now I can set presentation property
        Presentation.put_RemovePersonalInformation(lValue);

    Then I want to set another property,such as "serverZoom",but I can't find the interface in CPresentation0.h.There are many properties in presentation which you can find in ISO_IEC_29500-1_2012,chapter 19,accurately 19.2.1.26 presentation part.

    I learn that there are codes for VB and C#,please visit https://msdn.microsoft.com/en-us/library/documentformat.openxml.presentation.presentation.serverzoom%28v=office.14%29.aspx?cs-save-lang=1&cs-lang=vb&f=255&MSPPError=-2147217396#code-snippet-1

    My question is:

    Is there a way to set presentation properties(such as "serverZoom","firstSlideNum") in C++?

    Thanks.

    Tuesday, March 27, 2018 9:12 AM

All replies