none
Change pagesetup.Slidesize will change size of all shapes as well RRS feed

  • Question

  • We do have a program which create a graphical planning-report using shapes. It draws a lot of shapes - and before doing so it determines what is the appropriate page format before drawing those shapes. There are other shapes as well on the sheet which do exist before resizing is performed. In PPT 2010 it works fine. 

     

    Now in PPT 2013 it does not work. Following effect: 

    Those shapes already existing on the slide stay unchanged with the effect that they are now much too small.  - are there means so that i can tell the program to scale these shapes accordingls (such as interactively choosing the option "maximize" )? 

    Would be great if you could give me a hint. thanks


    Tuesday, January 20, 2015 8:28 PM

Answers

  • Hi Tom,

    Thanks for the detail explaintation.

    If I understood correctly that you want to find a way corresponding to the the next window after you changed the slide size like figure below:

    As far as I know, there is no such API to manipulate the PowerPoint like figure above. As a workaround, we can change the size of shapes via Shape.Width and Shape.Height.

    Also if you want to PowerPoint to support this API, I suggest that you submit the feedback from link below:

    Submit Feedback - Microsoft Support

    Regards & Fei


    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.

    Wednesday, January 28, 2015 3:33 AM
    Moderator

All replies

  • Hi,

    I am moveing this thread to base VSTO forum to the General Office developement, since the issue is related to PowerPoint.There are more PowerPoint experts in the General Office developement forum.

    Thanks for your understanding.

    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.


    Wednesday, January 21, 2015 9:46 AM
    Moderator
  • Hi TomJKoy,

    Based on the test, the code to change the slide size works well for me. Here is the test code:

    Sub ChangeSlideSize()
    With ActivePresentation.PageSetup
    .SlideSize = ppSlideSizeA3Paper
    
    End With
    
    End Sub
    

    Did I misunderstood?

    Also I suggest that you try to change it manually to see whether it works, you can change it via DESGIN tab->Customize group->Slide Size.

    If it still don't work, I suggest that you get more effectve response from Office 2013 and Office 365 ProPlus - IT Pro General Discussions forum.

    Regards & Fei


    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, January 22, 2015 3:20 AM
    Moderator
  • Hello Fei 

    I am afraid I was not clear: to change the slidesize works. But all shapes on the slide are now relatively to the whole slide much smaller than before.

    What I am looking for is a way to tell VSTO to keep the relative size of the shapes, so that the relative size and position of the shapes with regard to the slide does not change when the slide pagesetup.height and width are changed. 


    Or do I need to program that by myself?  

    Tom

    Tuesday, January 27, 2015 5:44 PM
  • Hi Tom,

    Thanks for the detail explaintation.

    If I understood correctly that you want to find a way corresponding to the the next window after you changed the slide size like figure below:

    As far as I know, there is no such API to manipulate the PowerPoint like figure above. As a workaround, we can change the size of shapes via Shape.Width and Shape.Height.

    Also if you want to PowerPoint to support this API, I suggest that you submit the feedback from link below:

    Submit Feedback - Microsoft Support

    Regards & Fei


    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.

    Wednesday, January 28, 2015 3:33 AM
    Moderator