【问题标题】:How to implement Signer Attachment in Docusign?如何在 Docusign 中实现签名者附件?
【发布时间】:2016-03-12 08:30:40
【问题描述】:

我对 docusign 的要求是我需要实现签名者附件,并且在 [https://github.com/docusign/docusign-soap-sdk/wiki/Code-Walkthrough-_-Signer-Attachments]

中提到了相同的场景

但我不确定如何使用 C# 中的代码实现。不知道如何将它附加到信封上?

我想向某人发送一份合同书以签署并要求他们附上一些文档,当所有这些都完成后,这些文档应该发送到我的电子邮件。

有人知道我是否可以通过 docusign 实现它吗?

【问题讨论】:

  • “但我不确定如何使用 C# 中的代码实现”。你误解了这个网站的意思。我们不帮助解决这类问题,只提供与错误相关的微小问题,我们永远不会为这样的人编写代码。
  • 我知道这一点,但我没有办法将签名附件添加到我创建的信封中。
  • 我能够实现它,想法是将SignerAttachmentTabs添加到签名者选项卡,然后将SignerAttachment添加到它。
  • 您可以提交自己问题的答案,然后将其标记为正确,这样以后的人可以更轻松地找到解决方案。

标签: c# docusignapi electronic-signature


【解决方案1】:

上一个条目还不错......我最终让它工作了。但是下面的这段代码是可靠的,在生产中,并且工作得很好!它还使用锚字符串。

        EnvelopeDefinition env = new EnvelopeDefinition();
        env.EmailSubject = "Please sign this document set";

        Document doc4 = new Document
    {
        DocumentBase64 = doc4PdfBytes,
        Name = "Voided Check Attachment", // can be different from actual file name
        FileExtension = "pdf",
        DocumentId = "4"
    };
        env.Documents = new List<Document> { doc4 };
        SignerAttachment signAttachDoc = new SignerAttachment
    {
        TabLabel = "Attach your voided check",
        DocumentId = "1",
        TabId = "1",
        PageNumber = "1",
        AnchorString = "/at1/",
        AnchorUnits = "pixels",
        AnchorXOffset = "0",
        AnchorYOffset = "0",
        AnchorIgnoreIfNotPresent = "false",
    };          
        Tabs signer1Tabs = new Tabs
    {
        SignerAttachmentTabs = new List<SignerAttachment> { signAttachDoc }
    };
    signer1.Tabs = signer1Tabs;
       Recipients recipients1 = new Recipients
    {
        Signers = new List<Signer> { signer1 }
    };
            env.Recipients = recipients1;

【讨论】:

    【解决方案2】:

    下面是我们在使用 C# SDK 时如何做到这一点

    创建签名者对象

    Signer signer = new Signer();
            signer.Name = recipientName;
            signer.Email = recipientEmail;
            signer.RecipientId = "1";
    

    然后创建附件标签

    signer.Tabs.SignerAttachmentTabs = new List<SignerAttachment>();
    

    之后我们需要添加一个附件

    SignerAttachment signDoc = new SignerAttachment();
            signDoc.TabLabel = "Attach your Other Doc";
            signDoc.DocumentId = "1";
            signDoc.TabId = "1";
            signDoc.PageNumber = "1";
    

    最后我们将它添加到标签中

    signer.Tabs.SignerAttachmentTabs.Add(signDoc);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多