Posted on: 1/22/2015 7:20:20 AM | Views : 496

Hi Friends,
When I am doing export to excel then I got the error and the error is Exception from HRESULT: 0x800A03EC  can you help on this
private static void ExportToExcelApplication(IGrid gridWidget, bool replaceEmptyWithZero)
{ // $KRE new solving: FPS_2236, FPS_3096, FPS_2842, FPS_2289, FPS_2651 if (gridWidget.Rows.Count >= MAX_EXCEL_ROWS) // -1 for Headerrow { string msg = string.Format("can not export more than {0} rows to Excel.", MAX_EXCEL_ROWS); throw new ValidationFailedException(msg); } Application excel; try { excel = new Application(); } catch (Exception exp) { throw new ApplicationException("Excel Application can be started.", exp.InnerException); } if (excel == null) { throw new ApplicationException("Excel Application can be started."); } Workbook wb = excel.Workbooks.Add(XlSh ...

Go to the complete details ...