Obtain the text entered in the form field


#1

Hi All,

It would be real great help if anyone could tell how do I get the text entered in the formField of type "Text" and bookmarked as "Test"?

Thanks a million Big Smile [:D]

Thanks and Regards,

Purwa


#2

In .Net version it is done this way:

string text = doc.Range.FormFields["Test"].Result;


#3

If you want to write this in one line, in Aspose.Words for Java it will be:

String text = doc.getRange().getFormFields().get("Test").getResult();