Hi Aspose Support,
Hi Wahaj,
This feature is not supported in Aspose.Cells and a request to support this feature has been logged into our issue tracking system as CELLSNET-43260. We will keep you updated on this issue in this thread.
You can use the following solution with Aspose.Words to get this information until signature line is supported.
Document doc = new Document("Document-With-Signature-Line");
<?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" />
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach (Aspose.Words.Drawing.Shape shape in shapes)
{
string text = shape.AlternativeText;
if (text.Contains("Microsoft Office Signature Line"))
{
shape.Range.ToDocument().Save("SignatureLine.xml");
}
}
From the XML (which contains the shape with signature line only), you can easily extract signature line ID.
Best Regards,
Hi,
Thanks for your using Aspose.Cells.
Please download and try the latest fix: Aspose.Cells for .NET v8.3.1.3. We have added Picture.SignatureLine property for your needs.
Please see the following code:
C#
Workbook workbook = new Workbook(@“C:\book1.xlsx”);
Console. WriteLine(workbook.Worksheets[0].Pictures[0].SignatureLine.Signer);
workbook.Worksheets[0].Pictures[1].SignatureLine.Signer = “bbbbb”;
int index = workbook.Worksheets[0].Pictures.Add(0, 0, Constants.sourcePath + “a.emf”);
Picture pic = workbook.Worksheets[0].Pictures[index];
SignatureLine s = new SignatureLine();
s.Signer = “Simon”;
s.Title = “MMMMM”;
s.Email = “Simon.Zhao@aspose.com”;
pic.SignatureLine = s;
workbook.Save(@“c:\book2.xlsx”);
The issues you have found earlier (filed as CELLSNET-43260) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.
Hi Aspose support,
Hi Wahaj,
You will be able to get signature line information once the issue mentioned at https://forum.aspose.com/t/14703 is fixed. In the meantime, you can continue using the workaround described in this post https://forum.aspose.com/t/14702
Best Regards,
Hi Israr,
Please follow http://www.aspose.com/community/forums/609761/create-a-signature-line-on-a-specific-location-in-both-ms-word-and-excel-document/showthread.aspx#609761 for further updates as both issues are interrelated.
Best Regards,