Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Saving Excel File From C#
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01395533
Message ID:
01395536
Views:
46
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform