Discussion:
PowerPoint automation basics - where to start?
(too old to reply)
Richard Heathfield
2008-06-20 03:44:03 UTC
Permalink
Hi folks

I'm trying to display a PowerPoint slideshow from within a BCB6
program. Obviously I have access to TPowerPointApplication and
so on, but I'm utterly clueless on how to go about it.

I got as far as this (in a command button's click event):

MsoTriState ro = msoTrue;
MsoTriState ut = msoTrue;
MsoTriState ww = msoTrue;
pptApp->Activate(); //
PresentationsPtr p =
pptApp->Presentations->Open(L"myppt.ppt", ro, ut, ww);

which opens PowerPoint but then brings up this dialog box:

HRCHECK:
? 'this->Open(FileName, ReadOnly, Untitled, WithWindow,
(Powerpoint_2k::PowerPointPresentation**)&Open)': Unspecified
error @ c:\program
files\borland\cbuilder6\include\vcl\PowerPoint_2k.h/3713
Press [Y]es to terminate, [N]o to continue and [C]ancel to Debug

I've tried looking at the <cough> Microsoft KnowledgeBase
article http://support.microsoft.com/kb/169505 but translating
from MFC to BCB6 has proved to be beyond my meagre talents.

Does anyone have any hints about how to proceed? All I want to
do is have the user supply me with a .ppt filename which I then
display fullscreen as a slide show, at which point I'd like
PowerPoint to close so that the user can get on with using my
program (which does other stuff too, of course).
Richard Heathfield
2008-06-27 09:07:41 UTC
Permalink
Post by Richard Heathfield
Hi folks
I'm trying to display a PowerPoint slideshow from within a BCB6 program.
...but answer came there none. Does that mean I'm off-topic?
That nobody knows how to do this? That I've managed to hit
everyone's killfile? Or simply that nobody saw my article?

Previous msg id: <***@newsgroups.borland.com>
--
RH
Loading...