Ouvrir un fichier xml (ouvrir totalement)

Résolu/Fermé
AFATIHAA Messages postés 29 Date d'inscription vendredi 28 novembre 2014 Statut Membre Dernière intervention 11 avril 2017 - 6 sept. 2016 à 02:38
AFATIHAA Messages postés 29 Date d'inscription vendredi 28 novembre 2014 Statut Membre Dernière intervention 11 avril 2017 - 8 sept. 2016 à 18:46
Bonjour,

j'ai vu un Tutorial qui permet d'ouvrir un fichier excel :

private void button1_Click(object sender, EventArgs e)
{

fileExcel = "notre chemin";
Excel.Application xlApp;
Excel.Workbook xlWorkBook;
xlApp = new Excel.Application();
xlWorkBook = xlApp.Workbooks.Open(fileExcel, 0, true,5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows,"\t",false,false,0,true,0,1);
xlApp.Visible = true;

}

Je veux faire la même chose pour un fichier .xml mais çà marche pas !!

A voir également:

3 réponses

jordane45 Messages postés 38138 Date d'inscription mercredi 22 octobre 2003 Statut Modérateur Dernière intervention 17 avril 2024 4 649
6 sept. 2016 à 08:38
Bonjour

Et que penses tu de ça :

http://www.yevol.com/csharp2/xml/Lesson01d.htm

.
1