When I open a Word document with Aspose.Word and then call the method MailMerge.GetFieldNamesEx(), an exception is thrown. All my word documents are working correctly except one document.
The Exception message thrown is by MailMerge.GetFIeldNamesEx:
"Non-negative number required."
"Parameter name: count"
Below is an extract for the calling sequence:
Dim m_Doc As Aspose.Word.Document
Dim l_merge_fields() As String
m_Doc = New Aspose.Word.Document(l_model_path)
l_merge_fields = m_Doc.MailMerge.GetFieldNamesEx()
I will send you my MSWord document as an e-mail attachment to the support e-mail address