Hi-
I am working with aspose.word 3.0.3.0 and I am having a problem with FormFields. I am trying to gather a collection of all the formFields and put their result and name into a 2 dimensional array. Everything works fine, except the last field is not recognized. I have ensured it is not the field in question. I’m unsure where to go. Here is the code:
//Open the default document template
Document doc = new Document(sPath);
//doc.Accept(this);
FormFields documentFormFields = doc.Range.FormFields;
string[,] valArray = new string[documentFormFields.Count,2];
for(int i=0;i<documentFormFields.Count;i++)
{
valArray[i,0] = documentFormFields.Name.ToString();
valArray[i,1] = documentFormFields.Result.ToString();
}
return valArray;
Any ideas?