.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Retrieve Calendar list as iCal and Contact list as vCard

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint
 

I am writing a SharePoint solution to make it possible to export selected content from a site to a ZIP in standard formats. For calendars and contacts this should be iCal and vCard.

I found out that SharePoint has the build in ability to create these files for me, using the RPC Method DISPLAY. http://msdn.microsoft.com/en-us/library/ms416599(v=office.12).aspx

This is the vCard example: /_vti_bin/owssvr.dll?CS=65001&Cmd=Display&CacheControl=1&List={9F2DC91F-691F-46B6-A882-09F1B111B50C}&ID=1&Using=%2FLists%2FExportContacts/vcard.vcf

This works like a charm, but I'm already on the server, so it's a bit of waste of resources the make a web-call for every contact I want to export.

owssvr.dll is a frontpage extension and not written in .NET so I can't see what code is called to transform a listitem to a vCard or iCal. Does anyone know which code is called and if I can call this directly from the server (without webcalls)?

I know I can write custom code (or find it on the internet) to do these exports, but I rather use the built-in technology if this is possible

 

 




View Complete Post


More Related Resource Links

How to add custom list entries to mysite's calendar in Sharepoint 2007 site?

  
Hi,

I would like to know below things

(1) How to create MySite for one specific member with other or administrator's access?

(2) Scenario : Administrator have created one SP2007 site. now Administrator have created one calendar (Sample calendar). Administrator have added some entries in calendar. now one user entered in portal site ansd view the calendar and he click on MySite menu. so this sample calendar entries should enter in that user's mysite calendar. How this can be achieved?

Thanks in advance.
Regards, Praful Udade

Cannot delete custom column in calendar list - 'unknown error'

  
I've created a column in a calendar list and now cannot delete it.  I've cleared all data and I still get the "Unknown Error" message when I try to delete. jan

Outlook Contact List From WPF Win App

  
Hi,    I'm trying to build a WPF Win app that has a form that allows the user to send e-mails. I'd like to open up our company's contact list to it and in a perfect world create a text box that allows type ahead and user lookup just like when you type in the "To" box when composing an e-mail in Outlook to create a semi-colon delimited string of e-mail addresses. I'm not finding anything like this in any of my searches. Any ideas? Thanks.

Emailing Calendar Item to SharePoint List

  
I have followed the various instructions around the net (specifically the TechNet article) on configuring MOSS2007 and Exchange for mail enabling your lists. I have also read and applied the changes specified by the Microsoft KB regarding the two forgotten Active Directory entries. At this point I am able to send an email to a list and have the email post. Some of my users want to make use of the Email enabled Calendar List. They create a standard Calendar list and mail enable it. They give the list a unique name for Active Directory. They then goto Outlook and try "inviting an attendee" to an event and wait to see the event get posted on the SharePoint list. I have applied the KB edits to the new Active Directory user and I can watch the emails come into the dropbox and then disappear, but nothing ever happens. I have permissions setup correctly as well as far as giving "Authenticated Users" contribute access.... I don't see any errors specifically.... I do notice all my emails come in as .eml attachments... Any ideas of where to look?

Emailing Calendar Item to SharePoint List

  
I have followed the various instructions around the net (specifically the TechNet article) on configuring MOSS2007 and Exchange for mail enabling your lists. I have also read and applied the changes specified by the Microsoft KB regarding the two forgotten Active Directory entries. At this point I am able to send an email to a list and have the email post. Some of my users want to make use of the Email enabled Calendar List. They create a standard Calendar list and mail enable it. They give the list a unique name for Active Directory. They then goto Outlook and try "inviting an attendee" to an event and wait to see the event get posted on the SharePoint list. I have applied the KB edits to the new Active Directory user and I can watch the emails come into the dropbox and then disappear, but nothing ever happens. I have permissions setup correctly as well as far as giving "Authenticated Users" contribute access.... I don't see any errors specifically.... I do notice all my emails come in as .eml attachments... Any ideas of where to look?

Custom Contact List: has to be auto-populated with users and manually insert others contact

  
Hi All, is it possible to create a custom contact list that automatically insert user as contact? I have to use it to send auto-email to the people in the contact list... (ant they can be user or not) Thanks All Vit

Calendar overlay only works on list calendar in team site?

  
Currently, I have a site collection with a top-level site and 7 sub-sites (all on an equal level just below the top-level site). I have created a calendar at each site.  On the top-level site, I've used calendar overlay to add the 7 sub-site calendars to its calendar.  It works just great! But if I try and edit the main page of the top-level site to add that calendar as a list item on the page, or as a web part (rather than having the user have to click on the Calendar under the Lists in the Navigation) - the overlay doesn't show up on the calendar. Why won't it work when I edit the home page and try and add it a web part or as an "existing list"? I get no errors regarding this - it just doesn't work!  Frustrating!!! Thanks in advance!

Export to outlook calendar in a custom list?

  
Howdy, I have a custom list with a calendar view. I think it was originally created as a custom list rather than a straight-out calendar for reasons of functionality. However, obviously this, being only a list, doesn't have the "Export to outlook" or "Connect to outlook" feature. I can't really recreate the list from scratch because it's been used for quite a while with a lot of content and custom fields, so is there a way of adding this feature? Thanks, Clark.

how to display multiple calendar list data in single calendar view

  
Hi, Normally, we can used to extend the ListViewWebPart's ViewType property to display a particular calendar list items in Calendar View in our custom webpart. Is it any way to display multiple calendar list data in a single calendar view ?? or please provide some pointers related to this issue. Any help is much appreciated.    

Creating calendar view from tasks list programmatically

  
Hi All, I have a Tasks list of type "107" and I am trying to create a Calendar view for the tasks list. The way I created the calendar view is as follows: SPView calView = l.Views.Add("Calendar", l.GetView(l.DefaultView.ID).ViewFields.ToStringCollection(), string.Empty, (uint)100, true, false, SPViewCollection.SPViewType.Calendar, false);<br/><br/> I would like to specify the Time interval, Calendar columns, Default scope for this view. Can anyone point me to documentation for creating a calendar view from tasks list? Do I need to specify that in the viewquery?Thanks.

Possible bug: Calendar views browse month function not working when list is inserted as webpart.

  

Inserted a custom list with a calendar view on a page as webpart. Browse month function does not work, there is a postback but month is still the current month instead of the next or previous.

Is this a know issue/bug?


Add a New Item to a Custom Sharepoint List and Sharepoint Calendar from one Infopath form.

  

I am trying to create an infopath form for requesting time off.  Once the request is approved I want the form to add the event to a calendar on sharepoint.  I was able to do this using the article by S.Y.M. Wong-A-Ton at http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm.  But I want the form to also add an item to a custom list that has the employees available time off stored on it.  That way the form can automatically subtract the time entered on the infopath form from what is available on the custom list.  I was able to do this using another article by S.Y.M. Wong-A-Ton at  http://www.bizsupportonline.net/infopath2007/programmatically-add-rich-text-item-sharepoint-list-infopath.htm.  I can make both of these functions happen seperately but I need them to happen on the same Infopath form.  I am using Infopath and MOSS 2007.  I have tried to use 2 CAML receive data files and I treid to co

Contact List Photo

  


How do i add photo to a user in a common contact list so that it is shown nicely in outlook.

I made it vice versa - added photofrom outlook and it updated my contact item in sharepoint list.

So i see that photo is an attachment with name "ContactPicture.jpg".

Cool i thought ! I made another item from sharepoint and attached "ContactPicture.jpg", then got into outlook ... and observe no image there (((

So how How do i make thing right ?

 


Expanding Recuring Events in a Calendar list

  

Hi all,

I have a remote Web service that connects and queries a sharepoint site collection. One specific query is on a events list. Some of the events are recuring so I want these expanded so I can view the individual instances. I am aware that SPQuery is able to do this, but since this service is remote from the sharepoint server, I have been forced to use the Microsoft.Sharepoint.Client namespace to connect to the site collection.

Does anyone know how I can expand the recurring events without having to write my own code to parse the RecurrenceData field of the event item ?


Calendar View for External Data List in SharePoint 2010?

  
Hello,

I'd like to create a calendar view from data contained in an External List.  My external content type has a Start Date, End Date, and other calendar fields.  Is this possible using the out of the box BCS?

For extra credit - I'd like to then use this calendar as an overlay on other calendars within my SharePoint 2010 application.

Thanks for your help!

Problem quering calendar list with recurring events

  

Hi guys,

I need to get all events from a list which are overlap with a range of time (StartDateTime - EndDateTime).

The problem is that recurring events has EventDate as the first day of recurence and EndDate 30 years later so absolutly all ranges of time get into any recurring period.

Is there a way to fix it?


Create workflow to create list item in calendar list of a DIFFERENT site collection

  

I work for a school district.  Each school has a SharePoint calendar.  We set up each school as its own site collection.  I would like to create a workflow that would send their calendar events to a district calendar, which is also its own site collection.

Example,  School A enters creates a new item on their personal school calendar.  They click YES in the column called SendToDistrictCalendar.  The workflow would be triggered to create this same item in the district calendar (which is in a different site collection) when SendToDistrictCalendar is checked YES.

We're using Windows Server 2003 with Windows SharePoint Services 3.0

I am a mid-level SharePoint user.  I would appreciate ANY and ALL help to make this work!!

 


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend