Crea la riga della firma in una cartella di lavoro di Excel utilizzando Aspose.Cells
Contents
[
Hide
]
Microsoft Excel fornisce una funzionalità da aggiungereLinea Firma nelle cartelle di lavoro di Excel. È possibile aggiungere una riga della firma facendo clic suInserire Tab e quindi selezionandoLinea Firma dalTesto gruppo.
Aspose.Cells fornisce anche questa funzione e ha esposto ilPicture.SignatureLine proprietà a tale scopo. Questo articolo spiegherà come utilizzare questa proprietà per aggiungere una riga della firma utilizzando Aspose.Cells.
Il codice di esempio seguente aggiunge una riga della firma utilizzandoPicture.SignatureLineproperty e salva la cartella di lavoro.
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"); |