我们正在尝试在C#应用程序中嵌入已批准/已拒绝的标签。我们可以添加其他功能,例如在此处签名标签。
Tabs tabList = new Tabs()
{
signHereTabs = new Tab[]
{
new Tab()
{
anchorString = "~s1",
anchorXOffset = -1,
anchorYOffset = 0,
anchorIgnoreIfNotPresent = false,
anchorUnits = "inches"
}
}
};
Tabs tablist2 = new Tabs()
{
signHereTabs = new Tab[]
{
new Tab()
{
anchorString = "~s2",
anchorIgnoreIfNotPresent = false
}
}
};
但无法添加批准或拒绝标记。在这方面的任何帮助将不胜感激。
信封信封=新信封();
envelope.Login = account;
envelope.EmailSubject = "Please sign my document";
envelope.EmailBlurb = "This goes in the body of the email";
envelope.Recipients = new Recipients()
{
signers = new Signer[]
{
new Signer()
{
email = "cmb@gmail.com",
name = "Chris Jackson",
routingOrder = "1",
recipientId = "1"
},
new Signer()
{
email = "asc@gmail.com",
name = "Anderson Car",
recipientId = "2",
routingOrder = "2"
}
}
};
Tabs tabList = new Tabs()
{
signHereTabs = new Tab[]
{
new Tab()
{
anchorString = "~s1",
anchorXOffset = -1,
anchorYOffset = 0,
anchorIgnoreIfNotPresent = false,
anchorUnits = "inches"
}
}
};
Tabs tablist2 = new Tabs()
{
signHereTabs = new Tab[]
{
new Tab()
{
anchorString = "~s2",
anchorIgnoreIfNotPresent = false
}
}
};
// assign our one signHere tab to the recipient
envelope.Recipients.signers[0].tabs = tabList;
envelope.Recipients.signers[1].tabs = tablist2;
// "sent" to send immediately, "created" to save as draft
envelope.Status = "created";
//*** Specify document and send the signature request
account.Login() = envelope.Create(@"C:\Users\cberard14\Desktop\NewOutput.docx");
Console.WriteLine("Signature request has been sent to {0}.", envelope.Recipients.signers[0].email);
Console.ReadLine(); // pause to show console output