Obtain the text entered in the form field

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

In .Net version it is done this way:

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

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();