Bonjour !

Bien qu'ayant effectué une recherche sur le forum, je me trouve face à un problème :

Je n'arrive pas à exporter mon ArrayList vers excel.

Je cherche je cherche mais je ne trouve pas.

j'ai commencé ceci :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
 
 ApplicationClass excel = new ApplicationClass();
 
 
            excel.Visible = true;
            excel.UserControl = true;
            Object book = excel.Workbooks;
 
            System.Globalization.CultureInfo oldCI = System.Threading.Thread.CurrentThread.CurrentCulture;
            System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");
            excel.Workbooks.Add(book);
            System.Threading.Thread.CurrentThread.CurrentCulture = oldCI;
Mais il crie sur : excel.Workbooks.Add(book);

avec comme erreur : Exception from HRESULT: 0x800A03EC

Je suis en winform, mais peu importe le type de solution

Merci de votre aide
Si vous souhaitez plus d'informations, n'hésitez pas