We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Null Reference on XlsIO.AddCopy()

Thread ID:

Created:

Updated:

Platform:

Replies:

117583 Nov 12,2014 01:01 AM UTC Nov 12,2014 10:02 AM UTC WPF 1
loading
Tags: XlsIO
James Hall
Asked On November 12, 2014 01:01 AM UTC

We just updated to 12.3.0.36 of Syncfusion and we started getting a Null Reference Error on our Worksheet.AddCopy calls.  I'm sure it's because we are doing something wrong and it just wasn't causing a problem before.  We do have code that messes around with IName.Delete().  But in the earlier version of XlsIO things ran OK. 

Stack Trace:
Object reference not set to an instance of an object.
   at Syncfusion.XlsIO.Implementation.Collections.WorksheetNamesCollection.FillFrom(WorksheetNamesCollection sourceNames, IDictionary hashNewWorksheetNames, Dictionary`2 dicNewNameIndexes, ExcelNamesMergeOptions option, Dictionary`2 hashExternSheetIndexes)
   at Syncfusion.XlsIO.Implementation.WorksheetImpl.CopyNames(WorksheetImpl basedOn, Dictionary`2 hashNewSheetNames, Dictionary`2 hashNewNameIndexes, Dictionary`2 hashExternSheetIndexes)
   at Syncfusion.XlsIO.Implementation.WorksheetImpl.CopyFrom(WorksheetImpl worksheet, Dictionary`2 hashStyleNames, Dictionary`2 hashWorksheetNames, Dictionary`2 dicFontIndexes, ExcelWorksheetCopyFlags flags, Dictionary`2 hashExtFormatIndexes, Dictionary`2 hashNameIndexes, Dictionary`2 hashExternSheets)
   at Syncfusion.XlsIO.Implementation.Collections.WorksheetsCollection.AddCopy(IWorksheet sheet, ExcelWorksheetCopyFlags flags, Boolean isLocal)
   at Syncfusion.XlsIO.Implementation.Collections.WorksheetsCollection.AddCopy(IWorksheet sheet, ExcelWorksheetCopyFlags flags)
   at Syncfusion.XlsIO.Implementation.Collections.WorksheetsCollection.AddCopy(IWorksheet sheet)

Can anyone point me in the right direction as to what we might be doing wrong to cause XlsIO to Exception when we call AddCopy()?  Thanks

Sudha Ramachandran [Syncfusion]
Replied On November 12, 2014 10:02 AM UTC

Hi James,

Thank you for using Syncfusion products.

A new Direct-Trac incident 131912 has been created for follow-up regarding the reported query. Please refer the mentioned incident and get back to us in that if you need any clarification.

Thanks,

Sudha Ramachandran


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;