Here is the snippet code that I use:
HttpPostedFile importedFile = txtImport.PostedFile;
var workbook = new Aspose.Cells.Workbook(importedFile.FileName);
foreach (Name name in workbook.Worksheets.Names)
{
Range range = name.GetRange();
bool whyIsThereNoRange = false;
if (range == null)
whyIsThereNoRange = true;
}
//I seem to hit the whyIsThereNoRange only for that one sheet in file with the unique character
FileToSendToAspose.zip (35.4 KB)
I tested this with the 17.3 version and I downloaded the newest version the 19.2 does the same thing. Not sure if something is set up wrong in the excel file to cause this situation. Otherwise this works great when we don’t have the character. Thank you in advance for your assistance