Print Page | Close Window

Register CalendarControl

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=9372
Printed Date: 07 October 2024 at 9:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Register CalendarControl
Posted By: simus
Subject: Register CalendarControl
Date Posted: 21 January 2008 at 8:44am
Hi,

I have an application that uses the ActiveX CalendarControl 11.2 and use the CalendarThemeOffice2007 to get the Office style.

I have created a setup program to install my application where I copy the CalendarControl in windows system32 folder and register it using regsvr32.

After a shutdown when I start my application I have a problem when opening a form with the CalendarControl when I do the following :

            CalendarThemeOffice2007 pTheme2007;
            pTheme2007 = (CalendarThemeOffice2007)calendar.Theme;
            if (pTheme2007 == null)
            {
                pTheme2007 = new CalendarThemeOffice2007();
                //BOOOOM!!!!!!!
                calendar.SetTheme(pTheme2007);
            }
            calendar.Populate();


if I then redo a regsvr32 on the activeX a second time then the application will work well.

Moreover, if i remove the 2007 style then it works directly without making a re-register.

Does anyone have an idea on what's going on?

Thanks a lot!!



Replies:
Posted By: wlcabral
Date Posted: 21 January 2008 at 12:41pm
I don't know if it helps, but, in my case (MS foxpro) I need to specify the full name :

pTheme = createobject("Codejock.DatePickerThemeOffice2007.11.2.2")

and I ALWAYS needed to uninstall the old version before install the new one.


-------------
wlcabral


Posted By: simus
Date Posted: 22 January 2008 at 5:04am
Thanks I will try.

but it is very strange indeed.

If the ActiveX is already present on the system and registered, a reregister will generate the same problem.

I will make a sample project and send that to support thanks anyway




Posted By: mosaic
Date Posted: 25 March 2008 at 6:21pm
hello,
 
I have same problem than you , could you explain if you resolve this problem ? thanks
 
 


Posted By: simus
Date Posted: 26 March 2008 at 11:42am
Hi,

In fact I did an application that :
   - Get the path of the OCX registered for CalendarThemeOffice2007
   - Read in the file its version
   - if version < than the one I required
   - Unregister the ocx
   - Register the version I need

This stand-alone application I launch it each time I startup my real application.

I did not find a better solution.





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