Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Use the AttachmentPosition Propertiy of MAPI
Message
 
À
07/08/2000 06:48:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00401755
Message ID:
00402122
Vues:
22
This should work fine. I add spaces to the end of the text to accommodate for the attachments and use those spaces for the attachments. Download my MAPIMail class from the files section and look in there to see how I've done it.

>Hi, All,
> When I using the AttachmentPosition property of Mapi like following, it always gave a error message about Invliad property value.
>My Code:
>==========================================================
>lnAttachPos=(LEN(Alltrim(THIS.cBodyText))-ALEN(THIS.aAttachmentFiles,1))-1 &&THIS.aAttachmentFiles is an array to store the attachment file list
>IF NOT EMPTY(THIS.aAttachmentFiles[1])
> Control.AttachmentPosition=lnAttachPos &&Error made here
> Control.AttachmentPathName=THIS.aAttachmentFiles[1]
>ENDIF
>==========================================================
>So I change the Code like this:
>==========================================================
>lnAttachPos=0
>IF NOT EMPTY(THIS.aAttachmentFiles[1])
> Control.AttachmentPosition=lnAttachPos &&Error made here
> Control.AttachmentPathName=THIS.aAttachmentFiles[1]
>ENDIF
>==========================================================
>Everything is OK! But I wonder why I could not give specify value to AttachmentPosition property of MAPI?
>Is there any friends can help me to work it out?
>Thanks a lot!
>
>BR
>
>Robin
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform