I am trying to read Conditional Blocks (IF ELSE Fields) in 1200+ documents
I’d like to log if the document contains Conditional Blocks, and what the condition is.
I use this code to get normal mergefields, but I cannot get the conditinal blocks
foreach (var fld in doc.Range.FormFields)
{
string type = fld.Type switch
{
Aspose.Words.Fields.FieldType.FieldFormDropDown => "wdFieldFormDropDown",
Aspose.Words.Fields.FieldType.FieldFormCheckBox => "wdFieldFormCheckBox",
Aspose.Words.Fields.FieldType.FieldFormTextInput => "wdFieldFormTextInput",
_ => Enum.GetName(typeof(Aspose.Words.Fields.FieldType), fld.Type.GetTypeCode())
};
...
Thanks in advance
This Topic is created by tilal.ahmad using Email to Topic tool.