Çalışma sayfası benzersiz kimliğini alma
Contents
[
Hide
]
Çalışma sayfası benzersiz kimliğini alın
Aspose.Cells, bir çalışma sayfasının benzersiz kimliğini almak için Worksheet.UniqueId özelliğini kullanma olanağı sağlar. Aşağıdaki kod örneği, bir çalışma sayfasının benzersiz kimliğini yazdırmak için Worksheet.UniqueId özelliğinin kullanımını göstermektedir. Bu örnek kod parçacığı, bu örnek excel dosyası kullanır.
Örnek Kod
This file contains 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 | |
//Source directory | |
String sourceDir = Utils.Get_SourceDirectory(); | |
// Load source Excel file | |
Workbook workbook = new Workbook(sourceDir + "Book1.xlsx"); | |
// Access first worksheet | |
Worksheet worksheet = workbook.getWorksheets().get(0); | |
// Print Unique Id | |
System.out.println("Unique Id: " + worksheet.getUniqueId()); |