Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Terminal Server / Outlook 2003

Status
Not open for further replies.

skoko

Programmer
Feb 11, 2002
188
US
I'm trying to create new outlook 2003 calendar entry from VFP.

Following code works fine:
Code:
myOlApp = CREATEOBJECT("outlook.application")
myItem = myOlApp.CreateItem(1)
myItem.Subject=mySubject
myItem.Body=myBody
myItem.Start=mySTart
myItem.Duration = 30
myItem.Save

However, when running same code through terminal server, calendar doesn't get updated until I physically log in to server and start outlook (even then takes 20 seconds for entry to show up)

Any clue?
 
Got it!

Adding:

Code:
	ns = myOlApp.GetNamespace("mapi")
	df = ns.GetDefaultFolder(9)

Fixed the problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top