Bonjour a ttes et a ts,
J'ai un petit souci avec la dll microsoft 'Excel9.olb'.
Voila, g un projet .Net C#, g ajouté cette librairie comme référence a mon projet puis mon code est le suivant :
L'erreur survient lorsque je crée mon workbook (ligne 3) :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 1 object oMissing = Missing.Value; 2 appExcel = new Excel.ApplicationClass(); 3 Excel._Workbook wrkbk = appExcel.Workbooks.Add (Excel.XlWBATemplate.xlWBATWorksheet); 4 appExcel.Quit(); 5 appExcel = null;
Quelqu'un aurait-il une idée de mon problème ?$"Échec de QueryInterface pour l'interface Excel._Application.
at Excel.ApplicationClass.get_Workbooks()"
Merci beaucoup.
Alex.
Partager