Link to home
Start Free TrialLog in
Avatar of TommyTwoPints
TommyTwoPintsFlag for Thailand

asked on

Turning off powerpoint screen updating

Hi experts can someone write me a function in vb.net that turns off powerpoint screen updating going on the basis that;

aP = new powerpoint.application
PP= powerpoint.presentation=aP.presentations.open("C:\Test.ppt")

Cheers,

Tom
ASKER CERTIFIED SOLUTION
Avatar of Brian Mulder
Brian Mulder
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TommyTwoPints

ASKER

Yes, ive seen that.
Are you absolutely sure thats the only option?
Avatar of Bob Learned
I don't understand what you mean by "screen updating"?

Bob
Hi Bob,

in excel you have an application.screenupdating which prevents the application from trying to refresh/repaint the screen while calculating cells or building charts.

this is different in other office apps and in powerpoint, not sure what it is in this case but if you build a slide dynamically in code then having the repainting going on could disturb the viewers,

the only way i can think of preventing this without the code above is using a sort of templates that are shown depending on the track through the presentation, but there could be a more simple way

Brian
I wasn't sure about that, so I didn't want to say anything until I was sure.

Here is the reference that I have:

PowerPoint VBA Equivalent of Application.ScreenUpdating
http://skp.mvps.org/ppt00033.htm

I haven't taken the time, nor had any requirement to figure it out for .NET.

Bob