دعم اللغة الألمانية في صيغ النطاق المحدد
Contents
[
Hide
]
تتم كتابة الصيغ الإنجليزية في المنطقة المسماة. يمكن فتح ملف Excel هذا في بيئة يتم فيها تكوين النظام إلى اللغة الألمانية ولكن يجب ترجمة الصيغة الإنجليزية إلى اللغة الألمانية. يوضح المثال التالي هذه الميزة ، ومع ذلك ، فإنه يتطلب تثبيت برنامج Excel باللغة الألمانية وتعيين لغة النظام إلى اللغة الألمانية أيضًا.
يمكن تنزيل ملف نموذج لاختبار هذه الميزة من الرابط التالي:
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-Java | |
// Define variables | |
String name = "HasFormula"; | |
String value = "=GET.CELL(48, INDIRECT(\"ZS\",FALSE))"; | |
// Load the template file | |
Workbook wbSource = new Workbook(srcDir + "sampleNamedRangeTest.xlsm"); | |
// Get the worksheets collection | |
WorksheetCollection wsCol = wbSource.getWorksheets(); | |
// Add new name to the names collection | |
int nameIndex = wsCol.getNames().add(name); | |
// Set value to the named range | |
Name namedRange = wsCol.getNames().get(nameIndex); | |
namedRange.setRefersTo(value); | |
// Save the output file | |
wbSource.save(outDir + "sampleOutputNamedRangeTest.xlsm"); |