<TD width="100" align="center"><INPUT type="submit" name="btnAction" value="Delete"></TD> <SCRIPT LANGUAGE=VBScript> function generate_vCard() Dim objOutlook, objApointment Const olAppointmentItem = 1 Set objOutlook = CreateObject("Outlook.Application") Set objAppointment = objOutlook.CreateItem(olAppointmentItem) objAppointment.Start = #<%=strMeetingDate%><%=" "%> <%=dteStartTime%># objAppointment.Duration = 60 objAppointment.Subject = "Title Here" objAppointment.Body = "This is a Test" objAppointment.Location = "" objAppointment.ReminderMinutesBeforeStart = 15 objAppointment.ReminderSet = True objAppointment.Save End function </SCRIPT> <TD width="100" align="right"><A href="vbscript:generate_vCard" >vCard</A></TD>
I have the above code on a web page. When I click the link I get an error that states "ActiveX component can't create object: 'Outlook.Application'. The page is under NT authentication. Outllook is running. The script runs fine when saved as a vbs.