Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #2553
| From | "andrej Terkaj" <aterkaj@task.si> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Call Outlook 2007-2010 from a VO2.5 app |
| Date | 2011-12-04 12:22 +0100 |
| Organization | news.siol.net Planet9 d.o.o. |
| Message-ID | <jbfl4t$ig0$1@news.siol.net> (permalink) |
| References | <510b85ce-0660-457a-9ed5-33bc86749280@o9g2000vbc.googlegroups.com> <63c29c62-15d1-44b7-8d71-debfc16f1275@v5g2000yqn.googlegroups.com> <3ab4d7df-b6c7-4506-b9ed-c134a2d6adbb@i6g2000vbe.googlegroups.com> <612b6622-6b70-4ee3-8f47-f7967fc845d3@h5g2000yqk.googlegroups.com> <2def0ea2-a25f-422c-9d5c-4e4862b9b329@y12g2000vba.googlegroups.com> |
Hi !
There is no error in your code in an environment :VO 2.8 SP2 and outlook
2007. You forgot a @ char in your IVarPut(), but this little mistake has no
influence in processing oleautoObject. Check also a version of mapi32.dll
I think that a problem that you have lies in incompatible VO2.5 and
Office. Young and strong man would not like to marriage an old and
abandoned lady.
In an unknown environments (my client's PC ) I usually add a few lines like:
// Init outlook object dwVer = 12 for Outlook 2007 , dWVer = 11 for Outlook
2003
oOutlook := OLEAutoObject{"Outlook.Application"}
// oOutlook := OLEAutoObject{"Outlook.Application.12"}
dwVer := Val(SubStr(oOutlook:Version,1,At(".",oOutlook:Version) -1))
IF oOutlook <> NULL_OBJECT .AND. oOutlook:fInit
IF dwVer = 12
oOutlook:Destroy()
TextBox{,"eRROR","Outlook 2007 NOT SUPPORTED!"}:Show()
// Send_SMTPMail(aEmailAdresses,cSubject,cText ) --> I think that
2.5 does not support SMTP
ELSE
TextBox{,"ERROR","MS Outlook does not exist!"}:Show()
ENDIF
Best regards
Andrej
"Designer" <designer1340@gmail.com> wrote in message
news:2def0ea2-a25f-422c-9d5c-4e4862b9b329@y12g2000vba.googlegroups.com...
On 3 déc, 19:50, dlzc <dl...@cox.net> wrote:
> Dear Designer:
>
> On Dec 3, 10:38 am, Designer <designer1...@gmail.com> wrote:
> ...
>
> > I've read everything, try many of them, but
> > still have my problem. I guess it's a little
> > thing to change but didn't find it until now.
>
> The method close(n) is invoked before the method display(), in that
> example. Did you try that?
>
> David A. Smith
Hi David,
Thanks for your efforts and your kindness.
This is the code I've tried just now.
METHOD PB_Call( ) CLASS W_EMAIL
LOCAL oOutlook AS OBJECT
LOCAL oItem AS OBJECT
oOutlook := OLEAutoobject{"Outlook.Application"}
oItem := oOutlook:CreateItem(0)
IVarPut(oItem, #TO, "dagobert87hotmail.com")
oItem:Cc := "dagobert87@hotmail.com"
oItem:Bcc := "dagobert87@hotmail.com"
oItem:Subject := "Message topic"
oItem:Body := "Body text"
oItem:Close(0)
oItem:Display()
RETURN NIL
But the error remains. I'm very sorry to see that the VO-App executes
the Display() correctly but then crashes. Does Display() needs some
additional parameters ?
Designer
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Call Outlook 2007-2010 from a VO2.5 app Designer <designer1340@gmail.com> - 2011-12-03 04:15 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app dlzc <dlzc1@cox.net> - 2011-12-03 08:13 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app Designer <designer1340@gmail.com> - 2011-12-03 09:38 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app dlzc <dlzc1@cox.net> - 2011-12-03 10:50 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app Designer <designer1340@gmail.com> - 2011-12-03 23:59 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app "andrej Terkaj" <aterkaj@task.si> - 2011-12-04 12:22 +0100
Re: Call Outlook 2007-2010 from a VO2.5 app Designer <designer1340@gmail.com> - 2011-12-04 09:53 -0800
Re: Call Outlook 2007-2010 from a VO2.5 app Designer <designer1340@gmail.com> - 2011-12-05 08:33 -0800
csiph-web