OdsoRecipientDataUniqueTag Property |
Namespace: Aspose.Words.Settings
Document doc = new Document(MyDir + "Odso data.docx"); // Records in this collection that do not have the "Active" flag set to true will be excluded from the mail merge OdsoRecipientDataCollection odsoRecipientDataCollection = doc.MailMergeSettings.Odso.RecipientDatas; Assert.AreEqual(70, odsoRecipientDataCollection.Count); int index = 0; foreach (OdsoRecipientData data in odsoRecipientDataCollection) { Console.WriteLine($"Odso recipient data index #{index++}, will {(data.Active ? "" : "not ")}be imported upon mail merge."); Console.WriteLine($"\tColumn #{data.Column}"); Console.WriteLine($"\tHash code: {data.Hash}"); Console.WriteLine($"\tContents array length: {data.UniqueTag.Length}"); Assert.AreNotEqual(data, data.Clone()); }