Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Seting License Property in IE
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Seting License Property in IE

 Post Reply Post Reply
Author
Message
James27 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 February 2006
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote James27 Quote  Post ReplyReply Direct Link To This Post Topic: Seting License Property in IE
    Posted: 13 February 2006 at 12:04pm

Can someone please explain how to set the License property from within IE, either from script or the <Object <Param> /> Tag.

Thanks.

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: 14 February 2006 at 11:02am
Back to Top
James27 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 February 2006
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote James27 Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2006 at 11:14am

Thanks for the info.

We are hosting the IE Web Control in a smart client application, all html,xsl etc is stored in a local resource file. The Calendar control is installed as part of the smart client application setup procedure. Normally for IE, you would create a lpk file, containing all the runtime license information for the controls you will be using on the html page. Unfortunately, this can not be accessed from a resource file. See: http://support.microsoft.com/default.aspx?scid=kb; EN-US;q272762
Any ideas ?

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: 14 February 2006 at 2:52pm
You can try an alternative solution using CalendarGlobalSettings object.
Try creating it and set CalendarGlobalSettings.License = "xxx".
Try also searching this forum for GlobalSettings usage tips.
The only problem which may happen is that CalendarGlobalSettings is not signed as safe for scripting.

--
WBR,
Serge
Back to Top
James27 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 February 2006
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote James27 Quote  Post ReplyReply Direct Link To This Post Posted: 14 February 2006 at 3:02pm

Good try, but... From script running within IE, how do you access the CalendarGlobalSettings object ? You can create the CalendarControl object, but you do not have access to the CalendarGlobalSettings object and hence the .Licence property. Not that i can see anyway. Any other ideas ?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2006 at 8:04am

FYI for 9.81:

ProgId - Codejock.CalendarGlobalSettings.9.81

Clsid - A40D0F2B-97DE-4F07-891F-E8DFFBF51555

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
James27 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 February 2006
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote James27 Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2006 at 12:06pm

Tried to create CalendarGlobalSettings, but no joy. The script just fails at the point of trying to creating the object. I am using version 9.81

I require the CalendarControl to expose and allow the setting of the License property from within a html page via script, or from the dhtml document. getElementById(“element id”). This html page never sits on a web server, it will go into a resource file. The client application that is hosting the IE ActiveX Web Control then loads the html page from the resource file.

Many thanks for the time and effort in trying to resolve this.

Any more ideas?
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: 16 February 2006 at 4:22am
html page which loaded from the resource file could contain something like the following code which should help:


Sub Window_OnLoad()
  Dim pGS
  Set pGS = CreateObject("Codejock.CalendarGlobalSettings.9.81")
  pGS.License = "Your License Text"
End Sub


--
WBR,
Serge
Back to Top
James27 View Drop Down
Newbie
Newbie
Avatar

Joined: 08 February 2006
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote James27 Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2006 at 6:50am

Hi, No that fails, as i said before.

I have found a workround to the problem. On the form that is hosting the IE Web Control, place an instance of the CalendarControl, set visible to false. Then in the Form_Initialise event, set the license information as normal. When the Web Control is given some html containing an OBJECT tag for the CalendarControl all works fine, probably because there is already a licensed instance of the CalendarControl up and going but hidden. Not ideal, but at least it works.

Maybe in the next version you can come up with a more elegant solution. Anyway, many thanks for your time and efforts.

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.