Aspose.Cellsを使用してExcelブック内に署名行を作成する
Contents
[
Hide
]
紹介
Microsoft ExcelはExcelブック内に署名行を追加する機能を提供しています。挿入タブをクリックし、テキストグループから署名行を選択して、署名行を追加できます。
Excelファイルの署名行を作成する方法
Aspose.Cellsもこの機能を提供し、この目的にPicture.SignatureLineプロパティを公開しています。この記事では、このプロパティを使用して署名行を追加する方法について説明します。
次のサンプルコードは、Picture.SignatureLineプロパティを使用して署名行を追加し、ワークブックを保存します。
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-.NET | |
// The path to the documents directory. | |
string dataDir = RunExamples.GetDataDir(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); | |
// Create workbook object | |
Workbook workbook = new Workbook(); | |
// Create signature line object | |
SignatureLine s = new SignatureLine(); | |
s.Signer = "John Doe"; | |
s.Title = "Development Lead"; | |
s.Email = "john.doe@aspose.com"; | |
// Adds a Signature Line to the worksheet. | |
workbook.Worksheets[0].Shapes.AddSignatureLine(1, 1, s); | |
// Save the workbook | |
workbook.Save(dataDir + "output_out.xlsx"); |