Is there a maximum size for a word document variable? I tried doing some
testing and it looks like it fails if I try to make a string longer than
about 65000 characters. If this is the case, is there a good way to link a
large amount of text to a field? I hoped to have fields within a document
that have other text associated with them.
Any info is appreciated.
Jezebel - 09 May 2005 07:55 GMT
65280 is the maximum length.
> Is there a maximum size for a word document variable? I tried doing some
> testing and it looks like it fails if I try to make a string longer than
[quoted text clipped - 3 lines]
> that have other text associated with them.
> Any info is appreciated.
Roger Whitehead - 13 Jun 2005 10:10 GMT
Try something like;
{IF {DOCVARIABLE myDocVar} = 1, "" ""}
Between the "" that represent TruePart, Do an Insert File, to a file
containing your long text string. Clearly, this will need to be in an
accessible location for all users.
Now you just need a VBA routine to set the value of myDocVar to 1
If you're doing this in a mail-merge, the IF field can be set to assess the
values of DataFields to arrive at it's return value.

Signature
HTH
Roger
Shaftesbury (UK)
> Is there a maximum size for a word document variable? I tried doing some
> testing and it looks like it fails if I try to make a string longer than
[quoted text clipped - 3 lines]
> that have other text associated with them.
> Any info is appreciated.