I would like to know where I can get the documentation of ppt api

R

RamRaj

Hello ,

I have a question in Powerpoint API. I am opening a powerpoint using COM
programming as follows

CComPtr<PowerPoint::presentations> presentations;
/* pptApplication is already set to valid pointer */
hr = pptApplication->get_Presentations(&presentations);

CComPtr<PowerPoint::_Presentation> thePresentation;
hr = presentations->Open((BSTR)szFileName, msoTrue, msoFalse, msoTrue,
&thePresentation);
/* thePresentation is returned as NULL for some test case*/
BSTR szName;
hr = thePresentation->get_Name(&szName);
/* szName is returned as NULL for some test case */

I would like to know where I can get the documentation of these APIs. I have
googled, but it did not get me any usefule links.I want to know if it is
valid for these APIs to return NULL values under some conditions,which means
I would need to check the validity of the pointers before using them.

Thanks and Regards,
Ramanan
 
S

Steve Rindsberg

Hello ,

I have a question in Powerpoint API. I am opening a powerpoint using COM
programming as follows

CComPtr<PowerPoint::presentations> presentations;
/* pptApplication is already set to valid pointer */
hr = pptApplication->get_Presentations(&presentations);

CComPtr<PowerPoint::_Presentation> thePresentation;
hr = presentations->Open((BSTR)szFileName, msoTrue, msoFalse, msoTrue,
&thePresentation);
/* thePresentation is returned as NULL for some test case*/
BSTR szName;
hr = thePresentation->get_Name(&szName);
/* szName is returned as NULL for some test case */

First, make sure the file exists and that the login under which PPT is running
has sufficient privileges to access it.

Then check to see if the file is password protected.
 
R

RamRaj

Thanks Steve for the reply.
I want to get the documentation of Powerpoint::_Presentations and
Powerpoint_Presentation interfaces functions.Please let me know where I can
get it.
 
A

Andrei Smolin [Add-in Express]

Hello,

Here is a fragment of an Add-in Express manual:

===
Getting Help on COM Objects, Properties and Methods

To get assistance with host applications’ objects, their properties, and
methods as well as help info, use the Object Browser. Go to the VBA
environment (in the host application, choose menu Tools / Macro / Visual
Basic Editor or just press Alt+F11), press F2, select the host application
(also Office and MSForms) in the topmost combo and/or specify a search
string in the search combo. Select a class/property/method and press F1 to
get the help topic that relates to the object.
===

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
www.add-in-express.com
 
S

Steve Rindsberg

Thanks Steve for the reply.
I want to get the documentation of Powerpoint::_Presentations and
Powerpoint_Presentation interfaces functions.Please let me know where I can
get it.

Probably the most comprehensive documentation is the Object Browser within PPT
itself.

Start PPT, open a file or start a new one if it doesn't do so automatically.
Press Alt+F11 to open the IDE
Press F2 for the object browser

Ah. Andrei has already replied with more or less the same thing.

Another point to add: The help system that shipped with PPT 2007 was missing a lot
of information and included a lot of incorrect examples.

Make sure you're set up to receive online help as well as the built-in stuff. The
online help has been considerably updated.

Better yet: if you can find the CHM help files from 2003 or earlier, use those
instead. For the basics, they're FAR better.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Automation of powerpoint 3

Top