Click here to Skip to main content
15,907,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating a windows service. In that i am reading the text file and creating the Excel file. I am developed this in windows 7, with Microsoft.Office.Interop.Excel (MS office 2013). It working fine in my system.

But when i deployed this in windows server 2008 R2 standard as a Windows service. At
VB
MyBook.SaveAs(filename,
                             Type.Missing, Type.Missing, Type.Missing, Type.Missing,
             Type.Missing, XlSaveAsAccessMode.xlNoChange, Type.Missing, Type.Missing,
             Type.Missing, Type.Missing, Type.Missing);


This line is throwing error as "Exception from HRESULT: 0x800A03EC".
I have tried all these, but no use.
http://stackoverflow.com/questions/15597490/exception-from-hresult-0x800a03ec-error-while-saving-excel-file[^]

Please help me on this. Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900