Steps to reproduce:
- Create XLSX file and add some random cell values into first column in first 4 rows
- Define name for cell “A3”, TotalRevenue using either DefineNames or Name Manager
- Add this excel file into project and embedded it into dll/exe using “EmbeddedResource” on Properties tab of the Visual Studio
- Using Assembly.GetExecutingAssembly().GetManifestResourceStream("…") get stream
- Access cell name using following syntax:
Stream demoFile = Assembly.GetExecutingAssembly().GetManifestResourceStream(“ConsoleApplication3.Demo.xlsx”);
Workbook excelFile = new Workbook(demoFile);
excelFile.Worksheets[1].Cells[“TotalRevenue”].Value = “10”;
- Exception has been thrown "Invalid cell name"
Expected behavior:
We should be able to access named cell using define name.
Note:
- Cell is accessible using default cell name: excelFile.Worksheets[1].Cells[“A3”]
- When file is saved, resulting file contains name defined for cell A3
Technical info:
Excel 2010
Aspose.Cells v. 7.5.1.0
Framework: .NET 4.0
Visual Studio 2012
Windows 7
Excel 2010
Aspose.Cells v. 7.5.1.0
Framework: .NET 4.0
Visual Studio 2012
Windows 7
Best regards,
Goran