Posted 8 September 2017, 5:29 pm EST
I am tying to save to excel this works for same data but the largest Page of data I have will not save the sheet is 10 * 200 .
this the error I am getting.
Index was outside the bounds of the array
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.
Source Error:
Line 211: {
Line 212: string File = XLSPath + “FileData.xls”;
Line 213: FpSpread1.SaveExcel(File);
[IndexOutOfRangeException: Index was outside the bounds of the array.]
c.a(String A_0, Stream A_1, IncludeHeaders A_2, ExcelWarningList A_3)
c.d(String A_0)
FarPoint.Web.Spread.FpSpread.SaveExcel(String fileName)
MarkBook.MarkBook.SaveMarkBook() in c:\inetpub\wwwroot\pcschool\markbook\markbook.aspx.cs:213
MarkBook.MarkBook.FpSpread1_ManageBtn_Command(Object sender, SpreadCommandEventArgs e) in c:\inetpub\wwwroot\pcschool\markbook\markbook.aspx.cs:187
FarPoint.Web.Spread.FpSpread.OnButtonCmd(String cmd, Int32 row, Int32 column)
FarPoint.Web.Spread.FpSpread.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String id)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()
Any ideas what it could be?