Salut ,
J'ai besoin de créer une application qui permet d'ouvrir un fichier excel.
Le principe est très simple : Lorsqu'on appuie sur le bouton le Fichier dont le chemin d'accès désigné s'ouvre.
Mais le soucis est que lorsque j' exécute mon programme je rencontre une erreur.
Ligne 23: System.Diagnostics.Process.Start("EXCEL.EXE",@"C:\Test0.xlsx");
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { System.Diagnostics.Process.Start("EXCEL.EXE",@"C:\Test0.xlsx"); } } }
Besoin d'un coup de main !
Merci d'avance !!!!!!!
Partager