OLE Object Error ( Argument error )
Posted: Thu Oct 14, 2010 2:54 pm
Hi people,
I'm using a simple function of OLE instructions for msoutlook (2007), but one of this instructions ( the same of sample ) has something wrong, this message was showed after the line be processed. the compilation is OK.
If somebody have any tip i'll apreciate very much
this is the error message :
Error WINOLE/1007 Argument error:DISPLAY (DOS Error1)
This is my function :
STATIC PROCEDURE OUTLOOKSuporte()
LOCAL oOL, oList, oMail, i, LM
oOL := CreateObject( "Outlook.Application" , "localhost" )
oList := oOL:CreateItem( 0 )
SELE PAR
LM := PAR->WORKF1
oList:to := PAR->WORKF1
SELE SUP
oList:Subject := "Registro de Suporte - GCLIQ"
oList:body := 'Prezado(s),'+ chr(13)+chr(13) + ;
oList:Display(.F.) <=== Error Line
oList:Send()
RETURN
I'm using a simple function of OLE instructions for msoutlook (2007), but one of this instructions ( the same of sample ) has something wrong, this message was showed after the line be processed. the compilation is OK.
If somebody have any tip i'll apreciate very much
this is the error message :
Error WINOLE/1007 Argument error:DISPLAY (DOS Error1)
This is my function :
STATIC PROCEDURE OUTLOOKSuporte()
LOCAL oOL, oList, oMail, i, LM
oOL := CreateObject( "Outlook.Application" , "localhost" )
oList := oOL:CreateItem( 0 )
SELE PAR
LM := PAR->WORKF1
oList:to := PAR->WORKF1
SELE SUP
oList:Subject := "Registro de Suporte - GCLIQ"
oList:body := 'Prezado(s),'+ chr(13)+chr(13) + ;
oList:Display(.F.) <=== Error Line
oList:Send()
RETURN