using (StreamWriter sWriter = new StreamWriter(stream, Encoding.UTF8)) { sWriter.WriteLine("Nom ; Prénom ; Adresse ; Code postal ; Ville ; Prospection ; Fixe1 ; Fixe2 ; Fax ; Portable"); foreach (ExtendedContact c in extendedContactList) { if (cb_prospection.Checked) { if (c.Prospection != "Contre") { sWriter.Write(OneSpace(c.Nom) + ";" + OneSpace(c.Prenom) + ";" + OneSpace(c.Address) + ";" + OneSpace(c.CodePostal) + ";" + OneSpace(c.Ville) + ";" + OneSpace(c.Prospection) + ";" + OneSpace(c.Fixe1) + ";" + OneSpace(c.Fixe2) + ";" + OneSpace(c.Fax) + ";" + OneSpace(c.Portable)); sWriter.WriteLine(); } } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)