请在下面找到我的代码。调用Envelopes.DeleteEnvelopeDocumentPage
方法后,页面仍在文档使用的信封中。
// Create Envelope
var envSummary = Envelopes.CreateEnvelope(envDef);
if (!viewModel.OptionalInserts.SubjectToFinance) {
string documentId = "";
string pageNumber = "";
Text instalmentTag = new Text();
var textTabs = envTemplate.Recipients.Signers[0].Tabs.TextTabs;
foreach (var text in textTabs) {
if (text.TabLabel == "BankGuaranteeAmount") {
documentId = text.DocumentId;
pageNumber =( int.Parse(text.PageNumber) + 1 ).ToString();
}
}
//deleting envelope document page
Envelopes.DeleteEnvelopeDocumentPage(envSummary.EnvelopeId, documentId, pageNumber);
}
public static void DeleteEnvelopeDocumentPage(string envelopeId, string documentId,string pageNumber)/*EnvelopeDefinition envDef)*/ {
var envelopesApi = new EnvelopesApi();
envelopesApi.DeleteDocumentPage(Account.AccountId, envelopeId, documentId, pageNumber);
}
我想念什么?