Toon posts:

Meerdere attachments met Visual Basic

Pagina: 1
Acties:

Verwijderd

Topicstarter
Weet iemand hoe je meerdere attachments met Visual Basic kan versturen ?

Ik maak gebruik van mapi.

MAPIMessages1.AttachmentType = ATTACHTYPE_DATA
MAPIMessages1.AttachmentName = "Test.txt" MAPIMessages1.AttachmentPathName = App.Path + "\test.txt

Ik weet zeker dat het kan met MAPI omdat je ook een function attachmentcount hebt.. dus...

Heeft iemand wel eens meerdere attachments verstuurd met VB ? Vertel A.U.B. hoe je dat gedaan hebt!

Alvast bedankt

Verwijderd

Op donderdag 30 mei 2002 15:11 schreef G_IJ_S het volgende:
Weet iemand hoe je meerdere attachments met Visual Basic kan versturen ?

Ik maak gebruik van mapi.

MAPIMessages1.AttachmentType = ATTACHTYPE_DATA
MAPIMessages1.AttachmentName = "Test.txt" MAPIMessages1.AttachmentPathName = App.Path + "\test.txt

Ik weet zeker dat het kan met MAPI omdat je ook een function attachmentcount hebt.. dus...

Heeft iemand wel eens meerdere attachments verstuurd met VB ? Vertel A.U.B. hoe je dat gedaan hebt!

Alvast bedankt
KommaŽs(?)

Verwijderd

Topicstarter
Nee... Al geprobeerd...

Verwijderd

Dat kan je volgens mij doen met de AttachmentIndex property.
Uit de o zo handige VB-help (:)):
Specifies an index number to identify a particular message attachment. The index number in this property determines the values in the AttachmentName, AttachmentPathName, AttachmentPosition, and AttachmentType properties. The attachment identified by the AttachmentIndex property is called the currently indexed attachment. The value of AttachmentIndex can range from 0 (the default) to AttachmentCount -1.

To add a new attachment, set the AttachmentIndex to a value greater than or equal to the current attachment count while in the compose buffer (MsgIndex = -1). The AttachmentCount property is updated automatically to reflect the implied new number of attachments.

For example, if the current AttachmentCount property has the value 3, setting the AttachmentIndex property to 4 adds 2 new attachments and increases the AttachmentCount property to 5.

To delete an existing attachment, specify the Delete method with the value parameter set to 2. Attachments can be added or deleted only when the MsgIndex property is set to -1.

  • Ronald_stage
  • Registratie: Januari 2002
  • Laatst online: 07:45

Ronald_stage

wat kan je hier nog zeggen

eeh, ik gebruik gewoon

attachment.add = dir1.path & "\" & File1.filename & dir2.path & "\" & file2.filename

suc6