Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
QuestionWhat is the main objective of using bar code Pin
Tridip Bhattacharjee4-Aug-14 21:51
professionalTridip Bhattacharjee4-Aug-14 21:51 
AnswerRe: What is the main objective of using bar code PinPopular
OriginalGriff4-Aug-14 22:30
mveOriginalGriff4-Aug-14 22:30 
GeneralRe: What is the main objective of using bar code Pin
Tridip Bhattacharjee5-Aug-14 4:21
professionalTridip Bhattacharjee5-Aug-14 4:21 
GeneralRe: What is the main objective of using bar code Pin
OriginalGriff5-Aug-14 4:27
mveOriginalGriff5-Aug-14 4:27 
Questioncreate vcf contact file Pin
Jassim Rahma4-Aug-14 20:56
Jassim Rahma4-Aug-14 20:56 
AnswerRe: create vcf contact file Pin
Richard MacCutchan4-Aug-14 21:02
mveRichard MacCutchan4-Aug-14 21:02 
AnswerRe: create vcf contact file Pin
Ravi Bhavnani5-Aug-14 6:50
professionalRavi Bhavnani5-Aug-14 6:50 
GeneralRe: create vcf contact file Pin
Jassim Rahma5-Aug-14 20:29
Jassim Rahma5-Aug-14 20:29 
I managed to generate the vcf file using the below code from your reply and I am able to open it on my PC and m Samsung Galaxy S5 but not the iPhone. Why is that?

C#
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());



Technology News @ www.JassimRahma.com

GeneralRe: create vcf contact file Pin
Ravi Bhavnani6-Aug-14 2:17
professionalRavi Bhavnani6-Aug-14 2:17 
GeneralRe: create vcf contact file Pin
Jassim Rahma6-Aug-14 2:23
Jassim Rahma6-Aug-14 2:23 
GeneralRe: create vcf contact file Pin
Ravi Bhavnani6-Aug-14 2:27
professionalRavi Bhavnani6-Aug-14 2:27 
GeneralRe: create vcf contact file Pin
Dave Kreskowiak6-Aug-14 2:29
mveDave Kreskowiak6-Aug-14 2:29 
GeneralRe: create vcf contact file Pin
Jassim Rahma6-Aug-14 2:36
Jassim Rahma6-Aug-14 2:36 
GeneralRe: create vcf contact file Pin
Dave Kreskowiak6-Aug-14 6:38
mveDave Kreskowiak6-Aug-14 6:38 
QuestionRetrieve information from UDL file Pin
Ashfaque Hussain4-Aug-14 20:26
Ashfaque Hussain4-Aug-14 20:26 
Suggestion[Repost] Retrieve information from UDL file Pin
Richard Deeming5-Aug-14 0:59
mveRichard Deeming5-Aug-14 0:59 
QuestionC# how to get count of same and distinct cell values from datagrid view in indexed labels ? Pin
Member 109914914-Aug-14 15:20
Member 109914914-Aug-14 15:20 
AnswerRe: C# how to get count of same and distinct cell values from datagrid view in indexed labels ? Pin
Bernhard Hiller4-Aug-14 20:55
Bernhard Hiller4-Aug-14 20:55 
QuestionNeed help to print a receipt in a WPF project Pin
vanjier4-Aug-14 7:43
vanjier4-Aug-14 7:43 
AnswerRe: Need help to print a receipt in a WPF project Pin
Dave Kreskowiak4-Aug-14 8:03
mveDave Kreskowiak4-Aug-14 8:03 
GeneralRe: Need help to print a receipt in a WPF project Pin
Member 108746935-Aug-14 3:57
Member 108746935-Aug-14 3:57 
GeneralRe: Need help to print a receipt in a WPF project Pin
Dave Kreskowiak5-Aug-14 6:42
mveDave Kreskowiak5-Aug-14 6:42 
GeneralRe: Need help to print a receipt in a WPF project Pin
vanjier5-Aug-14 7:05
vanjier5-Aug-14 7:05 
AnswerRe: Need help to print a receipt in a WPF project Pin
Dilan Shaminda4-Aug-14 18:13
professionalDilan Shaminda4-Aug-14 18:13 
GeneralRe: Need help to print a receipt in a WPF project Pin
vanjier5-Aug-14 7:06
vanjier5-Aug-14 7:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.