Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unusual speed behaviour
Message
From
16/06/2016 08:37:58
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2012
Network:
Windows Server 2012
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
Hyper-V
Miscellaneous
Thread ID:
01637412
Message ID:
01637422
Views:
67
No clear indication on the amount of data you transfer, but as soon as 2 dozen rows are exceed, it is usually better to
pipe he data to a xls or csv file and
read that file in Excel
do small modifications / special row handling via Excel macro using perhaps 2 sheets.

unless you are able to transfer the whole sorted cursor via clipboard

If you HAVE to use automation, create vfp local variables of repeated elements on the right of Excel object access path to speed up processing

>Hi all,
>I have a program that export date to excel, I use OLE automation. It does a select and a sort then open's excel and starts to populat the sheet. It's simple and just for 1 customer. I had to add a column to the report and when testing I noticed that it ran very slowely, 1 row per second (no calculation or formatting done when running), but I put this down to the server. I then clicked on the scroll bar and the program sped up, doing 4-5 rows per second. I am able to reproduce the behaviour, and would love to be able to have that speed in normal operation, but no idea why this is happening or how to achieve it in the normal running of the program, any idea?
>~M
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform