Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Outlook-Automation from VO 2.5

4 views
Skip to first unread message

Frank Schädlich

unread,
Jan 3, 2005, 5:31:41 AM1/3/05
to
Hi,

I test to use Outlook from my VO-Application. The folloing code works fine,
I can see the new mail.

Method OpenOutlook() Class BasicShellWindow

LOCAL oOutlook AS Object
LOCAL oNmsp AS Object
LOCAL oItem AS Object
oOutlook := OLEAutoobject{"Outlook.Application"}
oItem := oOutlook : CreateItem(0)
oItem:Cc := "F.Sc...@gmx.de"
oItem:Body := "Testtext"
oItem:Display()

But how can I fill the Value To ("An" in german)? When I try it with

oItem:To := "F.Sc...@gmx.de"

I got an error by compiling. What is the correct syntax??

Thanks Frank


PAUL SISKA

unread,
Jan 3, 2005, 8:39:55 AM1/3/05
to
Hi Frank
Try with

IVarPut(oItem, #To, "F.Sc...@gmx.de")

HTH
Paul SISKA


"Frank Schädlich" <F.Scha...@gmx.de> wrote in message
news:crb6ip$ra7$00$1...@news.t-online.com...

Frank Schädlich

unread,
Jan 3, 2005, 9:20:19 AM1/3/05
to
Thanks!! It works.

Frank
"PAUL SISKA" <stratec...@Online.fr> schrieb im Newsbeitrag
news:41d94c5c$0$20281$636a...@news.free.fr...

0 new messages