Supporto per la lingua tedesca nelle formule con intervallo denominato
Contents
[
Hide
]
Le formule inglesi sono scritte nella regione denominata. Questo file Excel può essere aperto in un ambiente in cui il sistema è configurato sulla lingua tedesca, tuttavia la formula inglese deve essere tradotta in lingua tedesca. L’esempio seguente mostra questa funzionalità, tuttavia richiede che Excel sia installato in lingua tedesca e che anche le impostazioni locali del sistema siano impostate su tedesco.
Il file di esempio per testare questa funzione può essere scaricato dal seguente link:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
const string name = "HasFormula"; | |
const string value = "=GET.CELL(48, INDIRECT(\"ZS\",FALSE))"; | |
Workbook wbSource = new Workbook(sourceDir + "sampleNamedRangeTest.xlsm"); | |
WorksheetCollection wsCol = wbSource.Worksheets; | |
int nameIndex = wsCol.Names.Add(name); | |
Name namedRange = wsCol.Names[nameIndex]; | |
namedRange.RefersTo = value; | |
wbSource.Save(outputDir + "sampleOutputNamedRangeTest.xlsm"); |