Skip to content

Replies

0
Vishal Gupta
Vishal Gupta answered on Sep 8, 2016 4:30 PM

Hi Milko,

The version of Infragistics is 15.2.20152.1000.

Windows 7 is our windows. We generate excel in memory and create byte array from it and byte array is passed to UI (from web service) for display where stream is created from it and call Load method on Workbook. It's local Machine and reproducible for Users too.

Thanks

0
Vishal Gupta
Vishal Gupta answered on Sep 7, 2016 3:04 PM

Hi Milko,

Currently we are using 15.2. I tried your code with my file. It resulted in same error with xlsx file. From exception it is not very clear, what is wrong. 

As per company policy, I can't share the excel. As this is the first time we faced this issue and works for most of the cases, I would like to understand from exception stack trace what could be the issue. I would expect a meaningful message in case there is something wrong with our excel

So could you please suggest how below exception stack trace could be related to our data and we can try to identify and fix that at our end

at Infragistics.Documents.Core.WorkItem.ExceptionInfo..ctor(Exception e)
at Infragistics.Documents.Core.WorkItem.Execute(WorkItemScheduler scheduler)
at Infragistics.Documents.Core.WorkItemScheduler.SynchronousImpl.Execute(WorkItem workItem)
at Infragistics.Documents.Core.WorkItemExtensions.GetResult[TResult](WorkItem`1 this)
at Infragistics.Documents.Excel.Workbook.Load(Stream stream, WorkbookLoadOptions loadOptions)
at Infragistics.UserControls.SpreadsheetControl.PreviewExcelFileFromByteArray(Byte[] byteArray)

Thanks

0
Vishal Gupta
Vishal Gupta answered on Sep 6, 2016 8:28 PM

The exception is Object reference not set to an instance of an object.