How to copy Contact Item to Clipboard and Paste as "VCF Link?

K

Ken Florian

I have code that creates a Task Item for the currently active Contact.

I want to embed a link (VCF?) to the currently active Contact Item in the
Body of the Task.

I have a programmatic reference to the Contact Item...just now sure how to
do the copy / paste of a reference to that Item into the Task.Body field.

Thanks,
 
D

Dmitry Streblechenko

Save the contact as a vCard (ContactItem.SaveAs..., olVCard), then read the
file and insert its contents in the task body.
Or simply attach the file as an attachment.

--
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
 
K

Ken Florian

Dmitry,

Thanks very much for the help.

I've got the ContactItem saving as a vcf per your example but it looks like
the "attachments" property is Read-Only. I'm not sure how to
programmatically "save" an attachment to the Task record.

Ken
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top