Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Outlook Appointments from Table
Message
 
To
27/09/2001 11:18:35
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00561470
Message ID:
00561499
Views:
19
Here is the basic format for creating an appointment:


  LOCAL oOutlook, oNameSpace, oFolder, oAppointment

  oOutlook = CREATEOBJECT("Outlook.Application")
  cSubject= "Outlook Appointment Subject"

  ** Create an instance of the namespace object
  oNameSpace = oOutlook.GetNameSpace("MAPI")

  ** Get a reference to the inbox
  oFolder = oNameSpace.GetDefaultFolder(OL_FOLDERCALENDAR)

  ** Add a new eAppointment to the folder
  oAppointment = oFolder.Items.Add(OL_APPOINTMENTITEM)

  ** Set up the appointment properties and save it
  WITH oAppointment

    .Subject = cSubject
    .Save()

  ENDWITH

RETURN


Here are the available properties for an appointment object:

** Object
Actions
Application
Attachments
FormDescription
GetInspector
Links
Parent
Recipients
Session
UserProperties

** Character
BillingInformation
Body
Categories
Companies
ConversationTopic
EntryID
Location
MessageClass
Mileage
NetMeetingDocPathName
NetMeetingOrganizerAlias
NetMeetingServer
NetMeetingType
NetShowURL
OptionalAttendees
Organizer
OutlookVersion
ReminderSoundFile
RequiredAttendees
Resources
Subject

** Numeric
Class
BusyStatus
ConversationIndex
Duration
Importance
MeetingStatus
OutlookInternalVersion
RecurrenceState
ReminderMinutesBeforeStart
ResponseStatus
Sensitivity
Size

** Logical
AllDayEvent
IsOnlineMeeting
IsRecurring
NetMeetingAutoStart
NoAging
ReminderOverrideDefault
ReminderPlaySound
ReminderSet
ResponseRequested
Saved

UnRead

** DateTime
CreationTime
End
LastModificationTime
ReplyTime
Start
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform