DarrenWard
IS-IT--Management
mapiSession.logonUI = .t.
mapiSession.signOn
mapiMessage.sessionID = mapiSession.sessionID
mapiMessage.msgindex = -1
mapiMessage.msgnoteText = "Hello "
mapiMessage.attachmentIndex = 0
mapiMessage.attachmentPathName = 'C:'
mapiMessage.attachmentName = 'Scan.Tiff'
mapiMessage.attachmentPosition = 0
mapiMessage.attachmentType = 0
mapiMessage.Action = 2
mapiMessage.signOff
I get an OLE execption : Failure on opening attachment
The file definately exists and if I use the exact same code in VB6 is works.
I have both controls on the form, any ideas?
Dazz
GuiltyMaggot - The best rock band in the world!
mapiSession.signOn
mapiMessage.sessionID = mapiSession.sessionID
mapiMessage.msgindex = -1
mapiMessage.msgnoteText = "Hello "
mapiMessage.attachmentIndex = 0
mapiMessage.attachmentPathName = 'C:'
mapiMessage.attachmentName = 'Scan.Tiff'
mapiMessage.attachmentPosition = 0
mapiMessage.attachmentType = 0
mapiMessage.Action = 2
mapiMessage.signOff
I get an OLE execption : Failure on opening attachment
The file definately exists and if I use the exact same code in VB6 is works.
I have both controls on the form, any ideas?
Dazz
GuiltyMaggot - The best rock band in the world!