Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement string sending to word too long...
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00651508
Message ID:
00652119
Views:
20
Actually, I hadn't even thought about that. By going into word and typing into the replace field, I discovered the limit is 255 characters. At this point, I just restricted the edit box to 255 characters. If they decide that isn't big enough, I could use your suggestion to increase the length to 510, 765, etc. as needed. Thanks!

>Just an idea. Can you put two placeholders instead of one for that field and replace later the first one with the first half of the memofield and the second with the second half?
>
>>I have a word template that has several fields replaced before being sent out. This is done using the search and replace functions:
>>
>>WITH oRange.Find
>> .Replacement.Text = ALLTRIM(outfile.spec_inst)
>> lFound = .Execute(,,,,,,,1,,,wdReplaceOne)
>>ENDWITH
>>
>>This works fine for all my replacement fields. But this specific one is a memo field, and I guess someone finally filled it in past the string limit. I am getting: OLE lDispatch exception code from Microsoft Word: String parameter too long.
>>
>>What I am looking for is a work around or fix. So far I have found nothing besides going to a mail merge (which at this point I'm not sure I want to do). Any thoughts would be appreciated.
>>
>>Thanks,
>>Kevin
Previous
Reply
Map
View

Click here to load this message in the networking platform