Object reference to Powerpoint presentation 
Author Message
 Object reference to Powerpoint presentation

Hi,
I have an Office Addin app which uses a designer adin for Powerpoint. I have
declared

Public WithEvents gobjApp          As PowerPoint.Application
Public WithEvents gobjDoc          As PowerPoint.Presentation

and am using the open event.

Private Sub gobjApp_PresentationOpen(ByVal Pres As PowerPoint.Presentation)
Dim prop As DocumentProperty

  Set gobjDoc = Pres

  'Set Custom Document Properties
  For Each prop In Doc.CustomDocumentProperties
    If prop.Name = "Caller" Then
      MsgBox prop.Name & "= <" & prop.Value & ">"
    End If
  Next
End Sub

However I am getting an error on the setting or indeed reference to the
'Pres' above ...the error reads...
"Error# 430 - Class does not support Automation or does not support expected
interface"
This happens even if I simply say "MsgBox Pres.Name". How am I to reference
the powerpoint presentation object ???

I use the same code in the other designers for Word, Excel etc and there is
no problem.

Has Powerpoint's object model (along with Publisher Visio and Project) been
implemented diferently to the other Office apps?...

Can anyone shed light on this or am I correct in assuming that it just wont
work!...

Regards
Jeff



Mon, 14 Feb 2005 17:49:58 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PowerPoint presentation as object

2. Error adding a powerpoint presentation to a ppt object

3. Opening a presentation object in MS powerpoint

4. Error while adding a powerpoint presentation to ppt object

5. opening a presentation object in powerpoint

6. Updating PowerPoint Presentation graphs using data from Access

7. Export reports to powerpoint presentation

8. PowerPoint Presentations based on Access Databases.

9. PowerPoint Presentations

10. Keypress detection during a powerpoint presentation

11. PowerPoint record presentation API

12. Extract text and images from powerpoint presentation

 

 
Powered by phpBB® Forum Software