 |
|
 |
Nice work but are missing a couple of things like vAttendee and vAttach..
|
|
|
|
 |
|
 |
It seems everyone has been voting on the end result, not on the actual article itself. As an article, all you've got is a code snippet. You do not have a real article until a discussion of the code and concepts behind it is added. Comments in the code snippet do not count since they never supply any of the concepts behind what's going on and don't completely describe the goal.
|
|
|
|
 |
|
 |
How can I attach VCalender while I am sending mail by SMTP
|
|
|
|
 |
|
 |
Been using this for 3+ years and its great, thank you.
Is there a way to mark an event as Private? My goal is that it would not be shared in Outlook/Exchange calendar.
Thanks,
Neil
|
|
|
|
 |
|
 |
3yrs... that's great. Glad it is working for you.
There is an IsPrivate property on the EventInformation class that marks the event as private or public. Did you not see that, or is that not working?
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
I looked through the code and that property is not there. Even did a search in VS and nothing found. Maybe you updated the code but didn't upload it?
|
|
|
|
 |
|
 |
You're right. The code in the article hasn't been updated to include this property. And since the article is locked down and I cannot edit, I'll post the info here. My code is now in C#, so I just post that.
Add the property:
Then in ToString(), before the "END:VEVENT" is appended, add the following line:
result.AppendFormat("CLASS:{0}{1}", IsPrivate ? "PRIVATE" : "PUBLIC", Environment.NewLine);
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
Can the the body of the calendar contain HTML?
How does one do this?
I tried adding it to the DESCRIPTION tag, but when I send the invite Outlook is not rendering the HTML.
Any ideas?
Thank-you
|
|
|
|
 |
|
 |
I think that the body can contain HTML, but it is up to the client (Outlook in your case) to support it. It doesn't look like Outlook supports HTML in vCalendar/ICS event descriptions. However, once in Outlook, you can add some rich formatting to the description. But if you then try to export the event to ICS, the formatting is dropped.
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
Hi there, create class. I am using this in an application where the users can download the events to their calendar. They are now asking if they can 'subscribe' to the ical Feed instead of downloading. I"m not sure if this can be done with this class.
Does anyone know if this is possible? If it is...can you point me in the right direction?
Thanks.
Jen
|
|
|
|
 |
|
 |
Jen,
Did you ever find a direction to start at?
Thanks
Ken
|
|
|
|
 |
|
 |
Is there a way to add appointment automatically to calendar?
(no opening file, just sending vCalendar as content)
If i want to send appointment to Google calendar, it doesn't help me to open attachment, Google must know that this is Calendar, not mail.
Does this work with all standard 'calander providers' as outlook and Google calendar?
|
|
|
|
 |
|
 |
Thank you so much for sharing the code on this website. But for some reason I can't get my Outlook to open the *.ics file. My Outlook reports the following error : "vCalendar/iCalendar Import failed. The input file may be corrupt" does anyone know why this is happening???
I'll be looking forward for your replies...
Thanks in advance,
hussam
|
|
|
|
 |
|
 |
Outlook is not very helpful about what is wrong, but honestly, it is probably the code's fault, and not outlook. The only way I've debugged is to remove various fields from the ICS file and figure out which field is at fault. Or create a similar event in outlook and export to ics and compare the two.
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
Change the file encoding to use ANSI.
I writing the file out to a steam over the web and am changing the encoding like this...
Response.ContentEncoding = System.Text.Encoding.Default; //Default uses the systems default ANSI encoding
|
|
|
|
 |
|
 |
Some of my internet calendars will automatically check for a new version of the calendar/event periodically. Is there any way to do that with a vcal file or a different kind of file?
If no, is there any way to update the event instead of having to remove and re-add it each time. This would be in Office 2007.
Thanks in advance...
Justin
|
|
|
|
 |
|
 |
Hi Chris,
Thanks so much for this! It has saved us tons of time and helped us provide this functionality very quickly. I was wondering if you had spent any time completing the recurrence class. If so, where might I find it? If not, we are going to get it in working condition and then I will get the code back to you.
Regards,
Dee
|
|
|
|
 |
|
 |
Dee,
Was wondering if you had completed the recurrence code. I'd like to see how you go about doing that.
Thanks
Ken
|
|
|
|
 |
|
 |
Hi Ken:
Yes, the code was created and has been working great for us. I will be happy to either post or email you the code.
Thanks,
Dee
|
|
|
|
 |
|
 |
Hi.
Just wondering has any one tried adding image into the calendar request; specification seems to tell that its possible I havent managed to get it to work
Regards
Rajesh
|
|
|
|
 |
|
 |
I've never tried it, but if you get more details, please post back info/links here.
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
Everything is working except the start/end time for my calender event.
I have this in the code
evt.DTStamp = CDate(CDate(EventDate.Text) + " " + CDate(EventTime.Text))
Which when I check what is getting put into the DTStamp field is
?CDate(CDate(eventDate.Text) + " " + Cdate(eventTime.Text))
#8/11/2006 5:30:00 PM#
but nothing in the appointment has the time. Any ideas?
Stacey
|
|
|
|
 |
|
 |
DTStamp is a timestamp, probably used for creation datetime tracking and/or last updated tracking. In order to set start/end dates and times, use DTStart and DTEnd, not DTStamp.
http://www.onlinescorekeeper.com/
|
|
|
|
 |
|
 |
Thanks Chris! You did a great job coding this class..not to mention that you saved me a bunch of time. So, thought I'd share my use case (ASP.Net 2.0) with the readers. In this example I: 1) fetch some data from my database 2) create an alarm to remind the user about the appt. 3) create an event using data from my recordset (in this step I also add the alarm to the event) 4) add the event to the calendar object's Events property 5) call the calendar object's ToString() method in the HttpResponse.
Public Sub exportAppt(ByVal intSchedID As Integer, ByVal response As HttpResponse) '///First I get a recordset. Dim strSQL As String = "SELECT schedID,schedDate,interviewerStandardEmailAddr,clientContact,schedComment " & _ " FROM viewAppts" & _ " WHERE schedID=" & intSchedID.ToString() Dim objDB As New catDatabase Dim dr As System.Data.IDataReader = objDB.getDR(strSQL) Dim ts As New System.TimeSpan(1, 0, 0, 0) Dim objCal As New vCalendar Dim objAlarm As New vCalendar.vAlarm(ts, "DISPLAY", "Reminder") Dim objEvent As New vCalendar.vEvent While dr.Read() With objEvent .Alarms.Add(objAlarm) .Summary = "Appointment Reminder" '//Subject line in Outlook. .DTStart = CDate(dr("schedDate")).AddMonths(-1).AddDays(1) .DTEnd = CDate(dr("schedDate")).AddMonths(-1).AddDays(1) .Location = "TBD" .Organizer = dr("interviewerStandardEmailAddr") .Description = "Client Contacts: " & dr("clientContact") & "\nComments: " & dr("schedComment") & "\nLink to CAT schedule: http://www.mysite.com" .URL = "http://www.mysite.com" .UID = "ID_" & dr("schedID").ToString() End With End While '///Add the event to the Events property of the calendar object. objCal.Events.Add(objEvent) With response .Clear() '///First, clean-up the response.object .Charset = "" .ContentType = "application/outlook" '///Set the response mime type for Outlook. .AddHeader("Content-Disposition", "attachment; filename=appointment.ics") '///Add the disposition header so that you can name the output file. .Write(objCal.ToString()) '///Output the file. .End() End With End Sub 'exportAppt -Travis -- modified at 10:30 Wednesday 15th February, 2006
|
|
|
|
 |
|
 |
sir
I want to know How to prepare eventmanagement calendar form design in vb.net?
|
|
|
|
 |