We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

InsertTextInput and Empty characters

Hi all,

I'm using documentBuilder to insert a text box:

documentBuilder.InsertTextInput(bookmark, TextFormFieldType.RegularText, string.Empty, string.Empty, 100);

but if the document is saved and opened in Word, then the text box does not contain any marks or characters => is not visible for the user.

If is filled and emptied, then the formField is displayed as usually in Word - is it neccesery to setup something? The only advice I found is to use e.g. " " as the 4th parameter but it is not exactly what we need.

Thanks very much, we are using Aspose.Words ver.



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. When you insert text input formfields, MS Word insert five special characters (\x2002) as a default value. So you can do the same. Please see the following code:

private void InsertTextInput(DocumentBuilder builder, string name, string value)


builder.InsertTextInput(name, TextFormFieldType.RegularText, string.Empty,

string.IsNullOrEmpty(value) ? "\x2002\x2002\x2002\x2002\x2002" : value, 100);


Hope this helps.

Best regards,