Re: Accessing PowerPoint API from C++ - COM

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Steve Rindsberg (abuse_at_localhost.com)
Date: 08/02/04


Date: Mon, 02 Aug 2004 17:21:00 EDT

In article <eE9ajVMeEHA.1732@TK2MSFTNGP09.phx.gbl>, Gandhi wrote:
> 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" <abuse@localhost.com> wrote in message
> news:VA.0000088a.e044226f@localhost.com...
> > > 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
> > ================================================
> >
>

--
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
================================================


Relevant Pages

  • Re: Annoying hyperlink warnings in Vista
    ... longer available with Vista, which was a checkbox in a tab in the "Folder ... "Steve Rindsberg" wrote: ... Security warning message when clicking hyperlink in PowerPoint 2003: ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: Creating Powerpoint presentations using MS Word Documents add
    ... The poster is created in Powerpoint. ... "Steve Rindsberg" wrote: ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: Export PowerPoint with C#?
    ... Steve Rindsberg wrote: ... You need to have PowerPoint installed in order to automate it. ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.office.developer.automation)
  • Re: Linked Objects
    ... Such as using an add-in ... "Steve Rindsberg" wrote: ... And since we've no idea of your skill level in PowerPoint and/or VB/VBA, ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: Selecting and deleting multiple table rows at the same time wi
    ... PowerPoint presentation and deletes rows based on their position on the ... slide and performs the operation on the next table. ... "Steve Rindsberg" wrote: ... Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)