Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Register CalendarControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Register CalendarControl

 Post Reply Post Reply
Author
Message
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: Register CalendarControl
    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!!
Back to Top
wlcabral View Drop Down
Groupie
Groupie
Avatar

Joined: 25 April 2007
Location: Brazil
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote wlcabral Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
mosaic View Drop Down
Newbie
Newbie


Joined: 25 March 2008
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote mosaic Quote  Post ReplyReply Direct Link To This Post Posted: 25 March 2008 at 6:21pm
hello,
 
I have same problem than you , could you explain if you resolve this problem ? thanks
 
 
Back to Top
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post 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.


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.172 seconds.