Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word and Bookmarks
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00344738
Message ID:
00344894
Views:
23
>There appears to be a limitation with Word 2000 and memo field lengths as it chops off the data after a couple of sentences so I began using Bookmarks instead of inserting fields in the Word Document. This works Beautifully (thank you Jose Constant), there doesn't appear to be any limitation to the size of a bookmark. The problem I have, however, is that the Document seems to keep track of the number of times it's used and is inserting the bookmark more than just the one time. The application calls up a Mailmerge document in Word that also has several bookmarks. It brings in the data fine, then I close the document, choose another product, do the mail merge and it brings up the information a second time. If I close the document and bring up another product and do the mail merge, it lists the bookmark a third time, etc. Ex: Lets say I have a Section 1. and then have a bookmark. The content of the bookmark should be 'The dog ran.' If I do the merge three times, the content of
>Section 1. is 'The dog ran. The dog ran. The dog ran.' When I check the Table that is storing the values (memo fields) for the document, the memo field contains the proper information (only one sentence). What is going on here?

Mary-Ann,

There must be something wrong with your VFP code. You should use the original document as a template. Then in VFP save it, say, as WORKING.DOC. Replace the bookmarks there and print. On the second iteration, start fresh from your template. That's all, I think.

José
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform