Default value of a text-formfield > 256 characters

M

Michael

Hi,

My question is: How can I put more than 255 characters in
the formfields default value?

The next code fills my text-formfield perfect wth more
than 256 characters:

Dim FmFld As FormField, Str1 As String
Str1 = (a long string > 256 characters)
FmFld.Range.Fields(1).Result.Text = Str1

Or if you're referring to the formfield by name:
ActiveDocument.Bookmarks("Text1").Range.Fields

Selecting the entire document (<ctrl> + <a>) and updating
it (<F9>) will fill the formfield with it's default value.
But I can not get more than 255 characters into the
default value.

How do I put more than 255 characters in it's default
value. the next code will not work:

Activedocument.Formfields("Text1").Textinput.Default = Str1
The formfields default code will lose everything after the
a certain position (about 255).

How can I put more than 255 characters in the formfields
default value?
 
M

Michael

The solution that they write works only temporarely.

When you update the field, information will be lost.
Therefor you have to fill the formfields default value.

So I hope yoy have an other idea!
 
M

Michael

The question is:

How to put more then 256 characters in the
formfields "Default" value?

The question is not: how to put text in the formfield?

By putting text in the Default property it remains there.
Even if you update the field
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top