I'm using a technique that I've used in the past to merge information from Delphi to Word:
works great, however, I have run into an issue. I have a very long string that I'm trying to pass into a bookmark that has 'Unlimited' as the length. I have tried changing it to a large number 2000 which is plenty long enough for the text, but that didn't work either. However I can type ALL the information into the bookmark. I just can't pass it programatically.
Any suggestions on how I can get my long string into the bookmark?
Thanks!
Leslie
Essential for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins
Code:
procedure MergeData(varWord: variant; strBookMark: string; strData: string);
begin
// if the Bookmark is defined in the document then add the string at that
// location.
if varWord.ActiveDocument.Bookmarks.Exists(strBookMark) = True then
varWord.ActiveDocument.FormFields.Item(strBookMark).Result:= strData
end;
works great, however, I have run into an issue. I have a very long string that I'm trying to pass into a bookmark that has 'Unlimited' as the length. I have tried changing it to a large number 2000 which is plenty long enough for the text, but that didn't work either. However I can type ALL the information into the bookmark. I just can't pass it programatically.
Any suggestions on how I can get my long string into the bookmark?
Thanks!
Leslie
Essential for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins