Invalid Procedure Call Office 2007 Theme |
Post Reply |
Author | |
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Posted: 23 October 2006 at 11:58am |
When I run the following code, which is straight from the sample project provided for Calendar 10.3.1 I get an error 5 "Invalid Procedure Call"
Private Sub mnuEnableTheme2007_Click() Dim objThemeOfice2007 As CalendarThemeOffice2007 Set objThemeOfice2007 = CalendarControl.Theme If objThemeOfice2007 Is Nothing Then Set objThemeOfice2007 = New CalendarThemeOffice2007 'error occurs on the line below CalendarControl.SetTheme objThemeOfice2007 Dim pPX As New PropExchange If pPX.CreateAsXML(True, "CalendarThemeOffice2007") Then If pPX.LoadFromFile(App.Path & "\cfgCalendarThemeOffice2007.xml") Then frmMain.CalendarControl.Theme.DoPropExchange pPX End If End If Else Unload frmTheme2007 If mnuCustomIcons.Checked Then mnuCustomIcons_Click End If CalendarControl.SetTheme Nothing End If CalendarControl.Populate End Sub |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Looks like there is a problem with components registration. Try reinstalling Calendar ActiveX.
Also you may probably have 2 references to different versions of the component. Select only one to be used. -- WBR, Serge |
|
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
|
I was afraid you were going to say that. You were right.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |