Invalid Procedure Call Office 2007 Theme
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5344
Printed Date: 22 November 2024 at 8:19pm Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Invalid Procedure Call Office 2007 Theme
Posted By: jcollier
Subject: Invalid Procedure Call Office 2007 Theme
Date 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
|
Replies:
Posted By: sserge
Date Posted: 24 October 2006 at 3:49am
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
|
Posted By: jcollier
Date Posted: 24 October 2006 at 10:14am
I was afraid you were going to say that. You were right.
|
|