Welcome! Log In Create A New Profile

Advanced

[WD12] Problem adding a task to Outlook

Posted by Stefan Bentvelsen 
Stefan Bentvelsen
[WD12] Problem adding a task to Outlook
June 30, 2009 05:08PM
I'm using WD12 and Outlook 2003. If I write a task to Outlook with a startdate and enddate with valid dates (i.e. july 14 or different dates), all looks OK. There is still a problem. I never get a valid enddate in my tasks.

Is it me doing something wrong, is it Outlook 2003 or is this a bug in WinDev?

Has anyone noticed this problem too?

Stefan Bentvelsen
Re: [WD12] Problem adding a task to Outlook
July 01, 2009 01:09PM
It becoms more strange now. I noticed that if I use i.e. july 4, 2009 as startdate a task is added in Outlook with startdate july 3, 2009. So what date I use, the task in Outlook got a startdate with a value of one day earlier.

Am I doing something wrong ?
Walter Celerier.pcs.crosspost
Re: [WD12] Problem adding an appointment to Outlook
July 03, 2009 09:41AM
Hi Stefan,

I use the following code and i don't have that problem (outlook 2007) :

//Datum11 is an editfield in the window.
//this is the code executed when pressing the button 'btn_outlook

h_sessionid is int = OutlookStartSession("")
IF h_sessionid <= 0 THEN
Error()
ReturnToCapture(btn_outlook)
END

AppointmentReset()
mAppointment.Subject = "Subject"
mAppointment.StartDate = DateToString(Datum11,"YYYYMMDD")+"09000"
mAppointment.EndDate = DateToString(Datum11,"YYYYMMDD")+"10000"
mAppointment.Category = "OpenAdmin"
mAppointment.Location = "Address"
mAppointment.ReminderBefore = 15
IF AppointmentAdd(h_sessionid) = True THEN
AppointmentRead(h_sessionid,mAppointment.ID)
ELSE
Error("Error during the addition", ErrorInfo())
END
CloseSession(h_sessionid)


Message forwarded from pcsoft.us.windev
Stefan Bentvelsen
Re: Re: [WD12] Problem adding an appointment to Outlook
July 03, 2009 12:48PM
Hi Walter,

if I don't set AutoReminder to true, I do not have the problem, but if I set AutoReminder to true, to get a reminder i.e. 15 minutes before the starttime of the appointment, the problem occurs. Have you tried the same thing with the option AutoReminder set to true ?

Can you try it for me, please ?

Stefan Bentvelsen
Re: [WD12] Dates problem SOLVED
July 13, 2009 09:25AM
When I use Date-Time values (in format: YYYYMMDDHHMMSS) the startdate in the task(s) got the exact values. So that problem is solved. It's the same for the mTaskEnddate, the mTask.ReminderDate and the mTask.Deadline !

Take care, in the helpfile (WD12) is as variable type 'date' mentioned and not date and time !
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: