Print Page | Close Window

Instantiating CalendarEvent in PB17

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=23599
Printed Date: 21 November 2024 at 9:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Instantiating CalendarEvent in PB17
Posted By: JHess
Subject: Instantiating CalendarEvent in PB17
Date Posted: 06 March 2018 at 5:28pm
I'm working with the demo version of Calendar, v18.3. So far I am unable to instantiate the CalendarEvent class. 

I found this statement in a sample project from v13.1 (sometime in 2009). It fails saying the file is not found which makes sense because the class name is not a file. Perhaps it was at one point.
rc = iOleEvent.ConnectToObject("Codejock.CalendarControl.CalendarEvent.18.3.0")

I tried the same statement like this to force the class name. The result is class name not found.
rc = iOleEvent.ConnectToObject("", "Codejock.CalendarControl.CalendarEvent.18.3.0")

Looking at the documentation, the CalendarEvent class does not appear to be a subclass of CalendarControl. So, I tried these with no success:
rc = iOleEvent.ConnectToObject("Codejock.CalendarEvent.18.3.0")
rc = iOleEvent.ConnectToObject("", "Codejock.CalendarEvent.18.3.0")

Finally, I decided to just create a new object with these attempts, but I still receive a response of class name not found.
rc = iOleEvent.ConnectToNewObject("Codejock.CalendarEvent.18.3.0")
rc = iOleEvent.ConnectToNewObject("Codejock.CalendarControl.CalendarEvent.18.3.0")

These statements work:
rc= OleCalendarDialog.ConnectToNewObject("Codejock.CalendarDialogs.18.3.0")
rc= iOleEvent.ConnectToNewObject("Codejock.CalendarThemeOffice2007.18.3.0")


Any guidance would be helpful.

Thank you





Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net