powerpoint slides on access form

  • Thread starter Thread starter Silvester
  • Start date Start date
S

Silvester

Hi,

How can I show powerpoint slides on my Access2K form without opening an
instance of Powerpoint ?

Using the code below opens the PP window, which I would like to avoid. I'm
looking for alternative code...

Dim strPowerPointFile As String
Dim pptobj As PowerPoint.Application
Set pptobj = New PowerPoint.Application
pptobj.Visible = True
pptobj.WindowState = ppWindowMinimized

strPowerPointFile = CurrentProject.Path & "\Access2PowerPoint.ppt"


Thanks for any help.
 
How can I show powerpoint slides on my Access2K form without opening an
instance of Powerpoint ?

You can't, not exactly. But poke around http://skp.mvps.org
Shyam's posted code you can use to host an instance of PPT on a form.

The other approach, depending on your timing needs, is to export the
presentation as a series of JPG or other format images and display them in a
control on your form.
 
Thanks Steve, what I was trying to do was to get PP to stop opening &
minimizing its window. I managed to achieve this by using this code:

Dim PPT As Object
Dim Pres As Object
Dim strPowerpointfile As String

Set PPT = CreateObject("PowerPoint.Application")

strPowerpointfile = Me.txtPPpath
Set Pres = PPT.Presentations.Open(strPowerpointfile, False, False,
False)
 
Back
Top