none
generate vcf contact file RRS feed

  • Question

  • Hi,

    Is it possible to generate vcf contact file using C# and .NET 4.0? or  need to use thirdparty only?

    Thanks,

    Jassim

    Tuesday, August 5, 2014 6:55 AM

Answers

  • Hello,

    Check this API. http://www.codeproject.com/Articles/16030/NET-vCard-API-for-creating-and-parsing-vCards.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Wednesday, August 6, 2014 3:29 AM
    Moderator
  • Hello,

    I think the support of vcf file on iphone is out of our range. I assume there is something about compatibility on iphone. Please post your thread on apple forum for support.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, August 12, 2014 9:16 AM
    Moderator

All replies

  • Hello,

    Check this API. http://www.codeproject.com/Articles/16030/NET-vCard-API-for-creating-and-parsing-vCards.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    Wednesday, August 6, 2014 3:29 AM
    Moderator
  • I managed to generate the vcf file using the below code and I am able to open it on my PC and m Samsung Galaxy S5 but not the iPhone. Why is that?

    var contact = new GoogleContacts()
    {title = "Mr.", first_name = "Kookoo", last_name = "NooNoo", work_phone = "17171717", mobile_phone = "39393939", email = "jassim@myemail.com", im = "jasmanskype" };
     
    var vcf = new StringBuilder();
    vcf.Append("BEGIN:VCARD" + System.Environment.NewLine);
    vcf.Append("VERSION:3.0" + System.Environment.NewLine);
    vcf.Append("TEL;type=HOME;type=VOICE;type=pref:" + contact.mobile_phone + System.Environment.NewLine);
    vcf.Append("FN:" + contact.first_name + " " + contact.last_name + System.Environment.NewLine);
    vcf.Append("END:VCARD" + System.Environment.NewLine);
     
    var filename = @"C:\temp\mycontact.vcf";
                
    System.IO.File.WriteAllText(filename, vcf.ToString());


    Wednesday, August 6, 2014 6:42 AM
  • Hello,

    I think the support of vcf file on iphone is out of our range. I assume there is something about compatibility on iphone. Please post your thread on apple forum for support.

    Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, August 12, 2014 9:16 AM
    Moderator