Hi there, we’re starting to use the Aspose.Cells named range API in order to find content that has been entered into Excel files. We’re currently working with Aspose.Cells 4.4.3.17, so we’re a little out of date. One curious thing that is happening with some Excel files is that the following API sample produces “extra” items in the Names collection:
Names names = this._workBook.Worksheets.Names;
this.rptrNamedRanges.DataSource = names;
I have this bound to a repeater. The repeater displays each Name instance’s RefersTo property and Text property. Some items appear to be duplicates in the rendered repeater. I.e. a partial copy and paste from the resultant rendered table of the repeater shows:
#REF!$B$186 | access1 | Yes | Starts at: R185/C1, Size: 1R x 1C | 0/0 Content: [[similar]] | Click to View Range |
---|---|---|---|---|---|
=#REF!$B$186 | access1 | Yes | Starts at: R185/C1, Size: 1R x 1C | 0/0 Content: [[similar]] | Click to View Range |
=#REF!$B$186 | access1 | Yes | Starts at: R185/C1, Size: 1R x 1C | 0/0 Content: [[similar]] | Click to View Range |
=#REF!$B$186 | access1 | Yes | Starts at: R185/C1, Size: 1R x 1C | 0/0 Content: [[similar]] |
Column 1 is the RefersTo property. Column 2 is the Text property. Before going further in analyzing the issue, do you know if this is a known issue with the current Aspose.Cells API, or if it was a known issue with our particular version of Aspose.Cells?
It does not seem to be happening with all Excel files that I am evaluating. Some seem to not have duplicate entries in the Worksheets.Names Aspose.Cells API. For this particular example, the Excel file does only show one instance of the named range “access1” within the Microsoft Excel Names manager, as well as in the Microsoft Excel named range navigator drop down. This is an Office 2003 file.
Thanks
Shan