Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Not working
Hi
We want to start using the calendar control.
We have it visible, events are fired.
When we follow "Geting started" and use this code:
Calendars = ""
Calendars<-1> = "PERSONAL":@VM:"Personal"
Calendars<-1> = "WORK" :@FM:"Work"
Set_Property(Ctrl, "OLE.CalendarList", Calendars)
A get_property of the OLE.Calendarlist returns empty.
I checked the license and got the information below.
The registry says that the conrol is in C:\ProgramData\OIREG\SRPControls.ocx
The registry also says that it version 1.0
Is it unlicensed?
Strange thing is that all the controls are expired, but it all works fine....
License
------------
Location: O:\VDL\OI\SRPLicense.dll
Company:
Serial Numbers: 1485*
SRPControls.ocx
---------------
3.2.0 RC3
Controls
------------
SRP Button Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP DatePicker Control, 3.0.5 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Editor Control, 3.0.8 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP EditTable Control, 3.0.8 RC5 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Hyperlink Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Launcher Control, 3.0.2 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Panel Control, 2.0.4 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Picture Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Popup Control, 3.0.2 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP ReportTable Control, 3.0.8 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Ribbon Control, 1.0.0 RC9 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Schedule Control, 3.0.6 RC1 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP ShortcutBar Control, 3.0.6 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Sketch Control, 1.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Splitter Control, 2.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP StatusBar Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Subclass Control, 3.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Tab Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Tree Control, 2.0.7 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
We want to start using the calendar control.
We have it visible, events are fired.
When we follow "Geting started" and use this code:
Calendars = ""
Calendars<-1> = "PERSONAL":@VM:"Personal"
Calendars<-1> = "WORK" :@FM:"Work"
Set_Property(Ctrl, "OLE.CalendarList", Calendars)
A get_property of the OLE.Calendarlist returns empty.
I checked the license and got the information below.
The registry says that the conrol is in C:\ProgramData\OIREG\SRPControls.ocx
The registry also says that it version 1.0
Is it unlicensed?
Strange thing is that all the controls are expired, but it all works fine....
License
------------
Location: O:\VDL\OI\SRPLicense.dll
Company:
Serial Numbers: 1485*
SRPControls.ocx
---------------
3.2.0 RC3
Controls
------------
SRP Button Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP DatePicker Control, 3.0.5 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Editor Control, 3.0.8 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP EditTable Control, 3.0.8 RC5 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Hyperlink Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Launcher Control, 3.0.2 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Panel Control, 2.0.4 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Picture Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Popup Control, 3.0.2 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP ReportTable Control, 3.0.8 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Ribbon Control, 1.0.0 RC9 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Schedule Control, 3.0.6 RC1 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP ShortcutBar Control, 3.0.6 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Sketch Control, 1.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Splitter Control, 2.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP StatusBar Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Subclass Control, 3.0.3 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Tab Control, 3.1.0 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
SRP Tree Control, 2.0.7 -- License expired on 09-10-2015 -- C:\ProgramData\OIREG\SRPControls.ocx
Comments
Licensing never affects functionality, so there is something else at play here.
The snippet of code looks correct, assuming Ctrl is set to the fully qualified name of the Calendar control. So, I can't really deduce what's going on here without more information. (That @FM after "WORK" should be an @VM, but that alone wouldn't break anything. I fixed that typo in the documentation)
We have a tool to examine the registered com-objects.
On my machine we see 3 times SRP Calendar Control from 3 different ocx libraries.
SRPEditor.ocx : SRPEDITOR.Calendar.1 : {631DD3F4-59BC-4ABB-A223-F1B7677D7F4F}
SRPUtil.ocx : SRPUTIL.Calendar.1 : {5F7DDA21-0D55-468D-91D5-76273CA1DE09}
SRPControls.ocx : srp.Calendar.1 : {AFC28124-F811-4175-9AF7-B249036A9B95}
Most properties named in srp.Calendar.1 (the one we are testing) begin with "Event" and "CalendarList" is missing.
In the 2 other libraries most properties start with "Appt" and a "CalendarList" is present.
What library can we use best?
Regards Ed
Hey Don!
But what about the property names of the calendar control in srpcontrols.ocx?
Do we use ScheduleList in stead of CalendarList ?
Maybe it is time for an update?
Although the Calendar control is there in version 3.2, it was in an early beta stage. Not only will the documentation not line up, it's not likely to have all the features it ended up with.
Sorry for the runaround. I was so focused on the code, I just skimmed the actual licensing and product version information.
We want to upgrade to the latest version. Can you help us please?
In the documentation we read " it can display multiple calendars just like Outlook"
We hope this means we can see multiple calendars at the same time and we can drag and drop appointments around. Is this possible?
May I ask the intended use case? Is this for managing people and appointments or for scheduling resources?
Please hold the upgradeprocedure for this moment.
Unfortunate we were unable to drag and drop an appointment from one calendar to another.
Thank you for your expertise.