Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个命名范围,当前指的是工作表中的 A1:I8。我想将其更改为引用工作表的更大部分。有谁知道 Aspose 中的一种方法可以做到这一点?或者让我删除 Aspose 中现有范围的方法?
您可以尝试以下示例代码供您参考:
Workbook workbook = new Workbook("e:\\test\\Book1.xlsx"); Worksheet sheetRef = workbook.Worksheets[0]; NameCollection names = workbook.Worksheets.Names; Name name = names["MyRange"]; name.RefersTo = "=A1:J10";