ワークシートの一意のIDを取得
Contents
[
Hide
]
ワークシートのユニークIDの取得方法
Aspose.Cells for Python via .NETは、Worksheet.unique_idプロパティを使用してワークシートのユニークIDを取得する機能を提供します。次のコードスニペットは、Worksheet.unique_idプロパティを使用してワークシートのユニークIDを印刷する方法を示しています。このコードスニペットでは、このサンプルエクセルファイルを使用します。
ソースコード
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
from aspose.cells import Workbook | |
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET | |
# Source directory | |
sourceDir = RunExamples.Get_SourceDirectory() | |
# Load source Excel file | |
workbook = Workbook(sourceDir + "Book1.xlsx") | |
# Access first worksheet | |
worksheet = workbook.worksheets[0] | |
# Print Unique Id | |
print("Unique Id: " + worksheet.unique_id) |