Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Saving Excel File From C#
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01395533
Message ID:
01395536
Vues:
47
>I'm writing data out to an Excel file. When I save I get "Exception from HRESULT: 0x800A03EC" on the save line below
>
>
>oSheet.SaveAs(ExportParams.sResultFileName, 
>                            Excel.XlFileFormat.xlWorkbookNormal,"", "",false, false, false, null,null);
>
>
>The params appear to be correct according to the object browser and this http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.worksheet.saveas(VS.80).aspx
>
>I could use some help.


This worked:
oSheet.SaveAs(ExportParams.sResultFileName,
        Type.Missing,
        Type.Missing,
        Type.Missing,
        Type.Missing,
        Type.Missing,
        Type.Missing,
        Type.Missing,
        Type.Missing);
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform