Borland C++ Builder VCL Components >> PowerPoint.Application automatization

by Nick.CDC » Fri, 14 Oct 2005 14:00:27 GMT

bellow is my code

#include <ComObj.hpp>

Variant pptApp;
pptApp = Variant::CreateObject("PowerPoint.Application");
Variant pptPst = pptApp.OlePropertyGet("ActivePresentation");
but when run the pptApp.OlePropertySet("Visible",false) ,it is error.I
can't invoke any method in pptApp.
who can tell me?

Similar Threads

1. Embed Powerpoint into C# application

2. PowerPoint animations won't play from C# application

I'm trying to drive a slideshow in PowerPoint 2002 with a C#
application built in Visual Studio 2003.  I'm using the
SlideShowView.Next() method.  The first call to Next() causes the
object with a onclick animation to disappear. The next call to Next()
causes the object to reappear.  Using the same code in a VBA macro runs
the slideshow perfectly.  Does any one know what's going wrong?  I've
attached the relevant sample code:

PowerPoint.SlideShowSettings s =
s.ShowType = PowerPoint.PpSlideShowType.ppShowTypeSpeaker;
s.LoopUntilStopped = Microsoft.Office.Core.MsoTriState.msoFalse;
s.ShowWithNarration = Microsoft.Office.Core.MsoTriState.msoTrue;
s.ShowWithAnimation = Microsoft.Office.Core.MsoTriState.msoTrue;
s.RangeType = PowerPoint.PpSlideShowRangeType.ppShowAll;
s.AdvanceMode =
s.PointerColor.SchemeColor =

In a button handler, I've reduced the code to:

PowerPoint.SlideShowWindows win = m_oPPT.SlideShowWindows;
Any assistance would be greatly appreciated. Thanks.


3. Powerpoint slideshow in C# winforms application - DSOFramer

4. Quit Powerpoint process from C# application

I am using C# to automate PowerPoint.
Works fine, except one thing: Application.Quit doesn't do it's job, the 
Powerpoint-Process will not quit!

Any ideas?

Kind regards,

5. How to use PowerPoint template in my application

6. Open Application within PowerPoint

Hi All,
 I want know wheather it is possible to open one application(e.g
Matlab0 inside power point slide using ActiveX. So that while making
presentation I dont have to exit slides and open the application. If
it is possible then can please somebody guide me how to do it??

Thanks in advance,

7. Automate Powerpoint from a VC++ application

8. How to Open another application in powerpoint

Hi All,

I want to open  on application within my power point slide using
Activex. Any idea how can I do that??

Thanks in advance