JohnnieMiami
Programmer
Hello!
I am trying to process a Word document that someone has provided to me. Its seems like the easiest thing to do would be to access the form fields like doc.activedocument.formfields("MyField1").value but that throws an error. I checked formfields.count and get 0. However, if I check doc.activedocument.fields.count I get the 117 (the number I would expect). However, when I try to access the field values using something like:
oword.ActiveDocument.Fields(1).Result.Text.ToString
I get:
"Error! Not a valid embedded object."
I'm using vb.net to access the values in the controls. Can you tell me what the difference is between a "field" and a "formfield" and how I can access the value in the "fields" object.
Thank you!
-Miami
I am trying to process a Word document that someone has provided to me. Its seems like the easiest thing to do would be to access the form fields like doc.activedocument.formfields("MyField1").value but that throws an error. I checked formfields.count and get 0. However, if I check doc.activedocument.fields.count I get the 117 (the number I would expect). However, when I try to access the field values using something like:
oword.ActiveDocument.Fields(1).Result.Text.ToString
I get:
"Error! Not a valid embedded object."
I'm using vb.net to access the values in the controls. Can you tell me what the difference is between a "field" and a "formfield" and how I can access the value in the "fields" object.
Thank you!
-Miami