Outlook Appointments, ASP and vCalendar Page 2

I created a custom Visual Basic class to serve as a wraper around the process of
creating the vCalendar text file. The class does limited date validation (that
responsibility is left to the ASP code), but does some time zone adjustment and
parses the date into a vCalendar-ready text string, prior to writing the formatted
text to a .vcs file.

This class exposes only the most basic properties of the Outlook Appointment item.
If more properties need to be set, you could determine the format by following the
instructions on the previous page for using Outlook to create a vCalendar template
and add those properties to the VB Class. Note that Property Let and Property Get
procedures are used to populate the following private variables:

The class has only one Method which parses the variables into strings and creates the
.vcs file. This method returns the path to the .vcs file as a string value. This file path
is needed by the ASP page, as we will see later. Notice the relatively simple code
involved with this proces:

In order for this class to be used by our ASP page, it is necessary to compile it into
an Active-X dll and register it on the server. The download for
this article includes a VB project with the code and an ASP page to execute it. I named
the DLL VCSWrap and if you unzip the contents of the download into a folder named vCal
under the C:\Inetpub\wwwroot\ directory, then you can register it with this line: