Bonjour,
Je suis en train de lire un tutoriel pour piloter un fichier Excel depuis C#.
Les premiere lignes sont:
1 2 3 4 5
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Excel = Microsoft.Office.Interop.Excel; |
Pour pouvoir compiler "Microsoft.Office.Interop.Excel" j ai du ajouter une reference au projet par Project/Add Reference
Par contre pour la ligne
using System.Windows.Forms
Quand j ajoute la reference System_Windows_Forms j ai un message erreur suivant
A reference to 'System_Windows_Forms' could not be added.
The ActiveX type library '...' was exported from a .NET assembly and cannot be added as a reference.
Add a reference to the .NET assembly instead
Pouvez vous me dire comment faire?
Merci
Partager