[Wtr-general] Outlook Access
Sun
forum-watir-users at openqa.org
Thu Oct 12 10:38:57 EDT 2006
You can control any MS office application from Ruby that supports OLE, as long as your Ruby script includes "win32ole". Word, Excel, Outlook, whatever. As for the details -- well, you have to look up the object model. I think the help file you probably want is "VBAOL10.CHM" -- this is the Microsoft Outlook Visual Basic reference. You will also want, in Outlook, to launch "Tools/Macro/Visual Basic Editor".
Use the help file to figure out the commands you want, and the constants. For any constants, enter them in the VB editor, right click on them, select "Definition" from the drop down menu, and the constant value will be displayed; for example:
===
Const olDateTime = 5
Member of Outlook.OlUserPropertyType
===
However, you will have to play with the Ruby code, because it won't be quite like the VB code, but it will be very close.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=4759&messageID=13149#13149
More information about the Wtr-general
mailing list