Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Speeding up Word....
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00420840
Message ID:
00421227
Vues:
20
Alternatively write the data to a delimited text file and make the word document a mail merge, add the fields, merge to a new file, hey presto, much quicker. Even better if you can open a word doc with the merge fields already there and all you have to do is point to the new data file.

>Hi!
>
> Yes. By using Macro in Word. You may call it from VFP, as well as make it from VFP in run-time. Than pass entire table as array as parameter to macro. Scan array in macro in Word - will be much more quick.
>
>>I have the following code to fill a word table:
>>
>>SCAN && Scan some table
>> IF (.ROWS.COUNT < m.LINE_TO_INSERT)
>> .ROWS.ADD
>> ENDIF
>> .CELL(line, column).RANGE.TEXT = SOMETEXT
>>ENDSCAN
>>ODOC.CLOSE()
>>
>>This code is slow. There is a way to speed up, enhance the performance of this code?
>>Thanks
Sarah King
pcpropertymanager.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform