Autor Beitrag
mcst09
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 112



BeitragVerfasst: Sa 03.06.06 23:42 
Hi,

ich habe mehrere Bilder auf einem Pfad (C:\\Ordner\Bild.jpg) die ich Outlook als Anhang mitgeben möchte.
Also mache ich folgendes:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  aPicture: TPicture;
begin
  aPicture := TPicture.Create;
  //...
  aPicture.LoadFromFile(C:\\Ordner\Bild.jpg);
  MailItem.Attachments.Add(aPicture, emptyParam, emptyParam, emptyParam); // <-- FEHLERMELDUNG


Jetzt bekomme ich aber eine Fehlermeldung, das die Typen OleVariant und TPicture nicht passen.
Wie kann ich dann ein Bild mitschicken??

Danke
axl
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Di 06.06.06 06:38 
Benutzt du die Outlook Komponenten(OLE) oder etwas auf indy Basis? Ich denke ersteres, da musst du ihm verklickern, das es nur um eine Datei geht, genaueres weiß ich aber leider nicht :oops: