Share via

Start "Compress Media" by Code

Anonymous
2014-12-02T10:04:17+00:00

Hi There!

I searched a lot to find a way to trigger the new Feat.: "Compress Media" by code.

Located in: File=>Info=>Compress Media

It doesn't matter which language VBA or interop (c#,VB.Net), I just ned an example.

I am also interessted in reading the result from the popupwindow (Slide, Name, Size, Status).

Does anybody know something?

Thanks for reading!

Microsoft 365 and Office | PowerPoint | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2014-12-02T18:18:18+00:00

The MediaFormat object has two properties Resample and ResampleFromProfile which does this. More about the MediaObject here: http://skp.mvps.org/2010/ppt002.htm

Resample method allows custom settings to be applied to resample media.

Sub Resample([Trim As Boolean = False], [SampleHeight As Long = 768], [SampleWidth As Long = 1280], [VideoFrameRate As Long = 24], [AudioSamplingRate As Long = 48000], [VideoBitRate As Long = 7000000])

ResampleFromProfile allows you tap into the UI profile settings that are in the File=>Info=>Compress Media options for a shape.

Sub ResampleFromProfile([profile As PpResampleMediaProfile = ppResampleMediaProfileSmall])

Was this answer helpful?

0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-12-03T13:12:08+00:00

    Thank you very mutch!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2014-12-02T18:50:54+00:00

    Thanks Shyam - learned something new!

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2014-12-02T17:29:41+00:00

    It's not part of the object model and to the best of my knowledge there no way to call it using ExecuteMso.

    Was this answer helpful?

    0 comments No comments