Problem in FormField's helpText functionality


#1

I am using Aspose Words for Java evaluation verion to insert FormFields (text, checkbox, and dorpdown fields) in word document and trying to set helpText with these newly inserted field.
These fields are inserted correctly but there is problem in helpText. I can’t see helpText in these fields using microsoft word click on field and then click on “Add Help Text…” button. Then Click on “Help Key” tab).
The insrted text should be visible over here.
I can still get this help text using aspose word APIs in new document.

Is it a bug in API or I am doing something worng?
Here is code I am using to test this feature:
--------------------------------------------------------------------------------------------------
Document src = new Document(“C:/data/test.doc”);
DocumentBuilder builder = new DocumentBuilder(src);
builder.moveToDocumentEnd();
builder.insertCheckBox(“CheckBox”, true, 0);
FormFields flds = src.getRange().getFormFields();

FormField f0 = flds.get(0);
f0.setHelpText(“Here We Go”);

flds = src.getRange().getFormFields();
for(int i=0; i {
FormField f = flds.get(i);
System.out.println("name: "+f.getName());
System.out.println("helpTxt: "+f.getHelpText());
}
src.save(“C:/data/out.doc”,SaveFormat.FORMAT_DOCUMENT);

----------------------------------------------------------------------------------------

PS: Will it be possible to change DocumentBuilder.insertCheckBox() signature to return reference of newly created FormField in future releases? I feel it’ll be very usefull for programming propective for developers.



#2

Try to call setOwnHelp(true) right before calling setHelpText.