BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Powerpoint: How to control presentation windows?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Axel Kellermann
Guest





PostPosted: Thu Sep 21, 2006 1:13 pm    Post subject: Powerpoint: How to control presentation windows? Reply with quote



Hello NG,

I use the following steps to open and display a PowerPoint presentation from
within my application:

- create an instance of TPowerPointApplication
- create an instance of TPowerPointPresentation
- connect instance of TPowerPointPresentation to instance of
TPowerPointApplication
- load presentation
- set properties of presentation
- start presentation

Everything works fine with the exception that I can't define which window is
used to actually render the presentation. Every time I open a presentation
it is displayed in a newly created window and that's not exactly what I had
in mind. I want to display the presentation inside a TPanel component on my
main window.
My question is: is there a way to define the "container" window for the
PowerPoint presentation? I toyed around with the different properties
(interfaces) of TPowerPointApplication and TPowerPointPresentation (like
Windows, SlideShowWindow e.g.) but didn't find a way to specify the window
used
by the presentation. The only thing I got working is moving and resizing the
presentation window. But that's also kind of awkward because values for
position and size have to be given in points instead of pixels...


I hope this is the right group to ask this question. Sorry if not.

Thanks,

Axel
Back to top
LC
Guest





PostPosted: Thu Oct 12, 2006 5:48 pm    Post subject: Re: Powerpoint: How to control presentation windows? Reply with quote



Hi Axel,

Did you ever get an answer, or did you find out yourself ?
The reason im asking, is because im having the same problem, and could
really do with an answer.

Kind Regards
LC


"Axel Kellermann" <ak@seven-m.de> wrote in message
news:45124997 (AT) newsgroups (DOT) borland.com...
Quote:
Hello NG,

I use the following steps to open and display a PowerPoint presentation
from within my application:

- create an instance of TPowerPointApplication
- create an instance of TPowerPointPresentation
- connect instance of TPowerPointPresentation to instance of
TPowerPointApplication
- load presentation
- set properties of presentation
- start presentation

Everything works fine with the exception that I can't define which window
is used to actually render the presentation. Every time I open a
presentation
it is displayed in a newly created window and that's not exactly what I
had in mind. I want to display the presentation inside a TPanel component
on my
main window.
My question is: is there a way to define the "container" window for the
PowerPoint presentation? I toyed around with the different properties
(interfaces) of TPowerPointApplication and TPowerPointPresentation (like
Windows, SlideShowWindow e.g.) but didn't find a way to specify the window
used
by the presentation. The only thing I got working is moving and resizing
the presentation window. But that's also kind of awkward because values
for
position and size have to be given in points instead of pixels...


I hope this is the right group to ask this question. Sorry if not.

Thanks,

Axel



Back to top
Axel Kellermann
Guest





PostPosted: Thu Nov 02, 2006 5:34 pm    Post subject: Re: Powerpoint: How to control presentation windows? Reply with quote



Hi LC,

I didn't get an answer and I still don't know how to define the window a
PowerPoint presentation is rendered to. But I found an alternative that
works quite well (at least in my case). I use a tool named "PowerCONVERTER
XP" to convert PowerPoint shows into Flash movies and display them using the
ShockwaveFlash ActiveX control. Unfortunately the wrapper class for the
ShockwaveFlash control fails to resize movies properly, so you have to fix
it by overwriting the function Resize() in TShockwaveFlash as follows (im
using CBuilder, but it shouldn't be to hard to convert the code into Delphi
syntax):

- add the following declaration to class TShockwaveFlash

DYNAMIC void __fastcall Resize(void);

- add the following implementation of method Resize()

void __fastcall TShockwaveFlash::Resize(void)
{
TWinControl* SavedParent = Parent;
try
{
Parent = NULL;
TControl::Resize();
}
__finally
{
Parent = SavedParent;
}
}

Hope that helps,
Bye

Axel

"LC" <lc (AT) mcscardsystems (DOT) com> schrieb im Newsbeitrag
news:<452e3984$1 (AT) newsgroups (DOT) borland.com>...
Quote:
Hi Axel,

Did you ever get an answer, or did you find out yourself ?
The reason im asking, is because im having the same problem, and could
really do with an answer.

Kind Regards
LC


"Axel Kellermann" <ak@seven-m.de> wrote in message
news:45124997 (AT) newsgroups (DOT) borland.com...
Hello NG,

I use the following steps to open and display a PowerPoint presentation
from within my application:

- create an instance of TPowerPointApplication
- create an instance of TPowerPointPresentation
- connect instance of TPowerPointPresentation to instance of
TPowerPointApplication
- load presentation
- set properties of presentation
- start presentation

Everything works fine with the exception that I can't define which
window is used to actually render the presentation. Every time I open a
presentation
it is displayed in a newly created window and that's not exactly what I
had in mind. I want to display the presentation inside a TPanel
component on my
main window.
My question is: is there a way to define the "container" window for the
PowerPoint presentation? I toyed around with the different properties
(interfaces) of TPowerPointApplication and TPowerPointPresentation (like
Windows, SlideShowWindow e.g.) but didn't find a way to specify the
window used
by the presentation. The only thing I got working is moving and resizing
the presentation window. But that's also kind of awkward because values
for
position and size have to be given in points instead of pixels...


I hope this is the right group to ask this question. Sorry if not.

Thanks,

Axel






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.