Link to home
Start Free TrialLog in
Avatar of DanDaemon
DanDaemonFlag for Ukraine

asked on

Microsoft PowerPoint integration...

Hello All,

Does somebody do integration with PowerPoint?
I need some samples how to integrate PowerPoint into my Delphi application
with ability to get all events which this ActiveX will generate.

Thanks,
Dan
ASKER CERTIFIED SOLUTION
Avatar of calinutz
calinutz
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To start PowerPoint and start a new presentation it's very easy:
Place a PowerPointApplication rename it to ppa and a Button on a form and then doubleclick on the button and enter this code:

procedure TForm1.Button1Click(Sender: TObject);
var
  t:TOleEnum;
begin
  Ppa.Activate;
  Ppa.Visible:= 1;
Ppa.Presentations.Add(1);
//upto now it starts the powerpoint and a new presentation
ppa.Presentations.Item(1).Slides.Add(1,1);
// now there's also a new slide on the presentation
end;
And to make different settings to the slide you have on the servers palette PowerPointPresentation and PowerPointSlide to play with.