How can i put a picture into vcard [delphi] - WeOnlyDo Discussion board

How can i put a picture into vcard [delphi] (General questions)

by Boboc Ionut, Monday, December 15, 2008, 22:33 (5821 days ago)

How can i put a picture into vcard ?
Thank you

Re: How can i put a picture into vcard [delphi]

by wodDamir, Monday, December 15, 2008, 23:54 (5821 days ago) @ Boboc Ionut

Hi,

You can try something like this:

Use an Image control, and load a Picture in it. Then use something like this to load picture into Photo property:

[code]var
pic1 : IPictureDisp;
begin
GetOLEPicture(Image1.Picture, pic1);
wodXMPP1.VCard.Photo := pic1;
end;[/code]

Hope this helps.

Regards,
Damba

Re: How can i put a picture into vcard [delphi]

by Boboc Ionut, Tuesday, December 16, 2008, 08:07 (5820 days ago) @ wodDamir

Hi,

You can try something like this:

Use an Image control, and load a Picture in it. Then use something like this to load picture into Photo property:

[code]var
pic1 : IPictureDisp;
begin
GetOLEPicture(Image1.Picture, pic1);
wodXMPP1.VCard.Photo := pic1;
end;[/code]

Hope this helps.

Regards,
Damba

It really helped , Thank you!