Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed in checking for MS-Word Bookmarks
Message
 
To
10/10/2006 21:18:34
Jill Derickson
Software Specialties
Saipan, CNMI
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01161078
Message ID:
01161106
Views:
15
>Hi all,
>
>I am going to be generating letters, in MS-WOrd, using templates (maintained by the user) and bookmarks to fill in information from data, after a benefit check printing run. Anywhere from 10 - 150 letters might be printed.
>
>Many letters include the same information (date, amount of check). But additional information differs, depending on the type of benefit...there may be an applicant name and address, wage earner name and address, beneficiary name and address, etc.
>
>At first i thought i'd set up a table, w/an entry for each type of bookmark and specify which letters each bookmark should be contained in. But maybe that is overkill.
>
>Now i'm wondering if, when generating the letters, i should just check to see if the bookmark exists in the template, and if so, fill in the appropriate information. My concern is speed. There will be at least 22 bookmarks to check for, but probably only an average of 7 will apply in any one letter.
>
>Does anyone have a feel if checking for the existance of a bookmark is a sloooow thing to do? I have code that checks for the bookmark as follows:
>
>
IF oAppInfo.oWord.Documents[1].Bookmarks.EXISTS( m.lcBookmarkName )
>
>Thanks for any input....J

Hi Jill,

I have cases with more than 100 checks for existing bookmarks and I did not notice any performance hit. I think you're safe.

José
Previous
Reply
Map
View

Click here to load this message in the networking platform