Improve company productivity with a Business Account.Sign Up

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

Generating Calendar Items from Web Pages

This one is probably a stretch, but here it goes anyway. :)

My boss (who wants our website to be "more webbish, but not too webbish") wants to know if I can add a special feature to our events pages on our intranet.  He would like people to be able to click a link for events that automagically adds a calendar item to their Outlook calendars for that particular event.  I was going to just say, no, it can't be done, but figured I'd ask the expert's first.

One of the possible ways I thought of would be to have the link generate an emailed meeting request to the user in question, but I'm really not sure that would be possible since I'm not sure of the format for a meeting request and whether or not one could be generated outside of outlook.  We do identify the users, so is it technically feasible to programmatically insert a calendar event to the Exchange database via LDAP?  If so, some details on what a calendar entry looks like in the database would be nice.

Any other thoughts or suggestions?  I'm not looking for a detailed answer or a complete solution (although that may be worth some bonus pts).  Third party apps are also an option as long as we don't have to rewrite out intranet.

We are currently using ColdFusion for the majority of our site, but we also have some ASP.Net pages for specific applications.

Since I know this question is a bit abstract, I'm hoping to get some brainstorming going with people who have either ventured down this road before, or have given it some thought.  Again, I'm not expecting a detailed solution, but a good idea of what may work.

  • 3
  • 2
  • 2
2 Solutions

if security is no object, you could make a VBA script from the server for each date ( dynamically generated or not ) and send it to the user via email...

Then if the script is opened in outlook, it could be creating the appointment without any problem.

If you need VBA to create a an apointment, calendar event, ask here i'll show you.
Remember that although it is on a company intranet you still have security issues to deal with. Well if you are using ASP.NET then you could use the Calendar user control from the Web Forms tab in Visual Studio .NET. To simplify things a bit...

Using Visual Studio .NET add the following COM component
reference if you can find it on your system. Here is where it is located on my system. Look through your references to COM objects on your system. "Add Reference" (Hint: Right Click the 'References' folder)

Microsoft Outlook 10.0 Object Library

C:\Program Files\Microsoft Office\Office10\msoutl.olb

Here is the using statement (Simple):

using Outlook;

Your specifically looking to inherit from the
Outlook.AppointmentItemClass in which you can set them on the local computer. Here are just a few settings for an appointment you can set


But, you will still need to make some sort of interaction between the class that makes the appointment and your calendar class which is also available as a Web Form user control in an ASP.NET application. Hope that get you on a good start other words yes it is possible...very possible bet you wish you didn't have to tell your boss that...LOL
SimmerDownAuthor Commented:
Thanks to both of you for your suggestions.

YSkelling, I would be interested in seeing a VBA script that can create an appointment and be sent via email.

Mathew, I'm not really sure I understand how your suggestion would work.  How would the ASP.Net page create the calendar item in the users calendar?  Would they have to have Outlook open?

Perhaps it would be possible to combine the ideas in a way...use the Calendar control sent via an email message to set the Calendar item.  Maybe that is what you are suggesting?

Again, thanks for the ideas.  Let's keep going with this.
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

SimmerDownAuthor Commented:
Wow, sometimes the simplest solutions are the best solutions.

We're just going to create calendar items and save them as .vcf files and make the link open the .vcf file.  User hits Save and Close then Bob's your uncle.

I'll wait until I hear back from both of you and then I'll most likely just split the points.  Even though I didn't end up using either solution, it was the combined stream of consciousness that made the idea come to me.

Thanks again.  Please post if you are willing to accept split points.
No problem with me !


The Calendar user control from the Web Forms tab in Visual Studio .NET would be used to link to the page with the appointments for the day.

Remember the only way to get something saved on a users computer is to have software installed on their computer that will perform this operation. Else user has to accept some sort of download. Using the COM component "Outlook" I mentioned above this is easy to do but you would still need to initiate your connection from the client computer to a server somewhere to gather the information to create the appointment. The appointment can be saved in Outlook without even opening it.
VBA's are great but like stated earlier if security is no issue...LOL

Keep the points...not a member anyways...Nice to have chatted...

Mathew Schlabaugh
SimmerDownAuthor Commented:
Too much work to keep the points.  Thanks again to both of you for your ideas.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now