Accessing PowerPoint API from C++ - COM

  • Thread starter Thread starter Gandhi
  • Start date Start date
G

Gandhi

Hi;
I'm looking for some sample code that I can use to access the PowerPoint
API. I'm trying to write a small application that can access a PPT File from
a given a URL, and save the same as HTML. I'm assuming that the "Save as
HTML" menu option in PowePoint is also available as a API that I can call.
I'm looking to use COM and C++ as I can not assume that the .NET run time
will be available at run time...
Any sample code or pointers to the right reference material will be greatly
appreciated.
TIA.
-Gandhi
 
I'm looking for some sample code that I can use to access the PowerPoint
API. I'm trying to write a small application that can access a PPT File from
a given a URL, and save the same as HTML. I'm assuming that the "Save as
HTML" menu option in PowePoint is also available as a API that I can call.

You can automate PowerPoint to do pretty much anything you can do manually with
it, but you need to have PowerPoint itself installed in order to automate it.

It wasn't clear from your question whether this will be the case. If
PowerPoint will be installed, then start with these links:

General info on Office Automation
http://www.rdpslides.com/pptfaq/FAQ00544.htm

Driving Excel from PowerPoint. Driving PowerPoint from Excel. And so on.
http://www.rdpslides.com/pptfaq/FAQ00368.htm

If PowerPoint won't be installed, then you won't be able to do much with
PowerPoint files.

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Thanks! This is almost what I was looking for!

Ideally I was hoping to accomplish this without requiring PowerPoint to be
instaled, but I suspected that would be next to imposible to achieve.

I was also hoping to do this in C++, with the intention of reducing the VB
run time library dependencies but I think I can take care of doing the
equivalent in vanila COM and C++.

Thanks again!
-Gandhi
 
Thanks! This is almost what I was looking for!
Great!

Ideally I was hoping to accomplish this without requiring PowerPoint to be
instaled, but I suspected that would be next to imposible to achieve.

I was also hoping to do this in C++, with the intention of reducing the VB
run time library dependencies but I think I can take care of doing the
equivalent in vanila COM and C++.

You can certainly write it in C++ or any other language that can act as an
automation controller. It doesn't have to be VB but VB is where you'll find
the most documentation and example code.

FWIW, unless you're targeting very old computers, you don't even need to ship
VB runtimes, just the EXE. The runtimes are installed as part of several of
the last versions of Windows, various versions of MSIE and updates to it, and
Office since 2000 or so, to the best of my recollection.

Thanks again!
-Gandhi

--
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Featured Presenter, PowerPoint Live 2004
October 10-13, San Diego, CA www.PowerPointLive.com
================================================
 
Back
Top