Try the NAME, the TEXT of what is wrong
CodePudding user response:
Make sure you want to take the position of the cell (longitude), what is the NAME TEXT?????? I am tostringCodePudding user response:
Reaching accept excel coordinate said the coordinates said would include name,CodePudding user response:
Worksheet. Cells [row_1, col_1]="";Worksheet you work this out,
Row_1 what line of work the
The which columns col_1 work
CodePudding user response:
You this is Named area, which is Named Range, did you find this attribute,The following code is to use Spire. Xls. DLL for named region name:
using Spire. Xls;
using System;
The namespace GetName
{
Class Program
{
The static void Main (string [] args)
{
Workbook Workbook=new Workbook ();
Workbook. LoadFromFile (" Input. XLSX ");
//get the first global naming area (range in the name of the work sheet)
String name1=workbook. NameRanges [0]. Name;
//get the first named local area (range is the name of the worksheet)
String name2=workbook. Worksheets. [0] Names [0]. Name;
}
}
}
CodePudding user response:
If use Interop, corresponding should be workbook. Attribute NamesCodePudding user response: