IPM.Appointment (OpenInsight 32-Bit)
At 09 MAR 2006 02:36:37PM Hans Stek wrote:
Is it possible to use MAPI to exchange data with the Message Class IPM.Appointment in Outlook? (Or any other IPM. Message Class for that matter)
Thanks,
Hans.
At 10 MAR 2006 10:53AM dsig _at_ sigafoos.org wrote:
sorry hans .. don't use mapi so can't answer your question ..
just wanted to say hi .. how is the home in spain .. get there often?
At 10 MAR 2006 01:11PM Hans Stek wrote:
Hi David,
Hope someone (Kevin???) will pick this up. I know that the described MAPI calls (using IPM. - IPM.Note or any other "Send email" form) work without problems, just want to see if I can do the same with the Calendar (IPM.Appointment) and Notes (IPM.StickyNote). If nobody knows I will just have to experiment myself - so what is new..
Home very good - temperatures up to 23C at the moment - Only 5 days a month in the UK, the rest work from home!! BUT am enjoying the nice NY weather at the moment. Hope you are doing well, speak soon,
Hans.
At 17 MAR 2006 06:56PM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
Which DLL are you proposing using (as in - do the docs for it indicate that you CAN use it for this)? Is there any reason why you're not using http://www.faqs.org/rfcs/rfc2445.html?
World leaders in all things RevSoft
At 20 MAR 2006 11:41AM Bob Carten wrote:
Hans:
In OI 7.21, You can easily use OLE to drive Outlook.
The code belows shows a vbscript example, the equivalent OI code
Function test_Ole_AppointMent(void)
/*
' ——–
' Original vbscript version from http://www.microsoft.com/technet/scriptcenter/resources/officetips/apr05/tips0405.mspx
' ——–
Const olAppointmentItem=1
Set objOutlook=CreateObject("Outlook.Application")
Set objAppointment=objOutlook.CreateItem(olAppointmentItem)
objAppointment.Start=#4/11/2005 11:00 AM#
objAppointment.Duration=60
objAppointment.Subject=Scripting Guys Planning Session"
objAppointment.Body=Meet with Scripting Guys to discuss upcoming plans."
objAppointment.Location=44/2039"
objAppointment.ReminderMinutesBeforeStart=15
objAppointment.ReminderSet=True
objAppointment.Save
*/
* —-
* Oi version
* rjc 03-20-2006
* —
equ true$ to 1
equ false$ to 0
equ olAppointmentItem to 1
debug
objOutlook=OleCreateInstance("Outlook.Application")
if OleStatus() then GoTo ErrorHandler
objAppointment=OleCallMethod(objOutlook, 'CreateItem', olAppointmentItem)
if OleStatus() then GoTo ErrorHandler
* Note That -] syntax works for OlePutProperty / OleGetProperty in System Editor, OI 7.2
objAppointment.Start=4/11/2006 11:00 AM"
if OleStatus() then GoTo ErrorHandler
objAppointment-]Duration=60
objAppointment-]Subject=Oi OLE functions"
objAppointment-]Body=Meet with Scripting Guys to discuss upcoming plans."
objAppointment-]Location=109A"
objAppointment-]ReminderMinutesBeforeStart=15
objAppointment-]ReminderSet=True$
if OleStatus() then GoTo ErrorHandler
x=OleCallMethod(objAppointment, 'Save')
if OleStatus() then GoTo ErrorHandler
return 0
ErrorHandler:
call Set_Status(1, 'Ole_Error ' : oleStatus())
return 1
At 20 MAR 2006 12:34PM Ray Chan wrote:
Hey Bob.
Way cool! That is so neat. You will need to do a complete white paper on this.
Regarding an earlier post on writing to Excel, you mentioned XML in connection with Office stuff. Is the XML format available today or is this for Office 12?
Again, thanks for sparking some excitement on this forum. Your two recent examples really have the potential to open up new opportunities and in fulfilling what you were preaching some years ago "Let Bill work for you."
It's now here more true than ever and thanks for spotlighting this. Darn, now if I only had enough time to play . This is great.
Thanks again,
Ray Chan
At 20 MAR 2006 02:35PM Bob Carten wrote:
Thanks Ray.
Thanks too to Rev Uk for the 7.21 OLE improvements that make these examples possible.
XML is there as of Office 2003.
Bob
At 21 MAR 2006 08:10AM Hans Stek wrote:
Hi Bob,
I agree with Ray - Way Cool.
Exactly what I was looking for. I think a white paper on this would not be wasted.
Thanks again,
Hans.
At 21 MAR 2006 09:34AM Hans Stek wrote:
Bob,
So would I be able to rework this into OI as well? Any more goodies connecting to Outlook?
http://www.microsoft.com/technet/scriptcenter/resources/officetips/apr05/tips0426.mspx
Thanks again,
Hans.
At 21 MAR 2006 09:57AM Bob Carten wrote:
You should be able to rework any of the examples.
I don't have a pile of these lying around. However, when I read your posting yesterday I googled for "MS outlook appointment vbscript example", found a good one, translated it in 15 minutes.
I tried to lay out that example so you could do more of them.
We are working on a white paper (aren't we Sean?)
At 21 MAR 2006 11:07AM Ray Chan wrote:
Dear Rev UK:
Thanks too to Rev Uk for the 7.21 OLE improvements that make these examples possible.
Mucho thanks for your excellent contribution! Keep up the good work. It gives us something to live for.
Ray Chan
At 22 MAR 2006 09:32AM Hans Stek wrote:
You are right. Just finished reworking the "Add Contact" script. Works very well…. Off trying to add Tasks next..
Rev UK - Great work - Thanks.
Hans.
At 22 MAR 2006 11:10AM dsig _at_ sigafoos.org wrote:
rev uk .. hah
that was bob carten man .. grand wizard of winwinsolutions and Rev USA USA USA ..
razzle drazzle druzzle drone ..
At 22 MAR 2006 11:50AM Hans Stek wrote:
Ahh, But The Big Chief Himself said: "Thanks too to Rev Uk for the 7.21 OLE improvements that make these examples possible."
So give a small country some credit… They try… (Glad I'm Dutch)
At 22 MAR 2006 01:11PM dsig _at_ sigafoos.org wrote:
us dutch have to stick together ..
Big Chief .. you must be talking about me again .. you flatter me too much
is this for those yahoos in england?
At 24 MAR 2006 09:54AM Hans Stek wrote:
Ah well, you know, they don't get off their island very much.. so give them credit for a few things once every while.