Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Invalid Procedure Call Office 2007 Theme
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Invalid Procedure Call Office 2007 Theme

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: Invalid Procedure Call Office 2007 Theme
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 24 October 2006 at 10:14am
I was afraid you were going to say that.  You were right.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.