Print Page | Close Window

Seting License Property in IE

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=3645
Printed Date: 21 November 2024 at 10:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Seting License Property in IE
Posted By: James27
Subject: Seting License Property in IE
Date 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.




Replies:
Posted By: sserge
Date Posted: 14 February 2006 at 11:02am
Look into http://support.microsoft.com/default.aspx?scid=kb;en-us;159923 - http://support.microsoft.com/default.aspx?scid=kb;en-us;1599 23

--
WBR,
Serge


Posted By: James27
Date 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 ?



Posted By: sserge
Date 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


Posted By: James27
Date 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 mk:@MSITStore:C:\Program%20Files\Codejock%20Software\ActiveX\Xtreme%20SuitePro%20ActiveX%20v9.81\help\SymbolReference.chm::/XtremeCalendarControl~CalendarControl_members.html - 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 ?



Posted By: Oleg
Date 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


Posted By: James27
Date 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?


Posted By: sserge
Date 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


Posted By: James27
Date 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.




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