Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - How to get all CalendarViewEvents
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to get all CalendarViewEvents

 Post Reply Post Reply
Author
Message
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post Topic: How to get all CalendarViewEvents
    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
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
McKloony View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 January 2007
Location: Germany
Status: Offline
Points: 340
Post Options Post Options   Thanks (0) Thanks(0)   Quote McKloony Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rahulcjain View Drop Down
Newbie
Newbie


Joined: 24 April 2012
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote rahulcjain Quote  Post ReplyReply Direct Link To This Post 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 ??
Back to Top
Narsi View Drop Down
Newbie
Newbie


Joined: 24 February 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Narsi Quote  Post ReplyReply Direct Link To This Post 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.
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.117 seconds.