Print Page | Close Window

How to get all CalendarViewEvents

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=19017
Printed Date: 07 June 2024 at 4:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to get all CalendarViewEvents
Posted By: McKloony
Subject: How to get all CalendarViewEvents
Date Posted: 05 October 2011 at 8:42am
How can I get all CalendarViewEvents in the ActiveView and not only the SelectedEvents?

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Xander75
Date Posted: 17 May 2012 at 5:13am
Hi,

I know this question was asked a while ago but there has been no response to this and I had the same question.

I found out by trial and error that I could get all events by doing the following:

Dim calEvent As CalendarEvent, Days As Long
With CalendarControl
    Days = .ActiveView.DaysCount
    For Days = 0 To Days - 1
        For i = 0 To .ActiveView.Days(Days).MultipleResources(0).RetrieveDayEvents(.ActiveView.Days(Days).Date).Count - 1
            Set calEvent = .ActiveView.Days(Days).MultipleResources(0).RetrieveDayEvents(.ActiveView.Days(Days).Date).Event(i)
            Debug.Print "Subject : " & calEvent.Subject & ", StartTime: " & calEvent.StartTime & ", EndTime: " & calEvent.EndTime
        Next
    Next
End With


This code gets the number of days depending on the selected ViewType i.e. Day, Week or Month then for each day it returns all the events for the ActiveView.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: McKloony
Date Posted: 19 May 2012 at 3:52am

Thank you, meanwhile I use a simiƶar pricedure und it works fine.



-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: rahulcjain
Date Posted: 23 October 2012 at 8:46am
Hi how can i get a list of upcoming events in listview or in  grid.. how to get full year active view ??


Posted By: Narsi
Date Posted: 28 November 2012 at 2:48pm
Did you get any reply or figured out how to do this?  I'm kind of looking to do the same thing but did not find any method as of yet.



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