Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Advice on speeding up sending data to Excel
Message
De
20/06/1997 16:19:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
18/06/1997 04:01:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00036697
Message ID:
00037221
Vues:
32
> XLSheet.Cells(i,j) = aVFPvar > > As as i a am concerned the current workaround is : > > 1- create a temp DBF cursor, > 2- COPY TO myworksheet.xls TYPE XL5 > 3- open the temp.xls within EXCEL > 4- do the cosmetics (autofit,font,...) > 5- save it > > As it is a destructive process that can potentially destroy sophisticated > multi-sheets documents i also offer a more time-consuming refresh option > that sends Excel tons of : > > XLSheet.Cells(i,j) = aVFPvar > > If anyone has a better workararound i'd be glad to read. I alas don't think > it is possible to "feed" Excel cells ranges with VFP array. > > François Why not combine the best of both? Copy to ... type xl5, and then use DDE to insert that into a predefined sheet, thus keeping all the macros and other stuff. So, the above scheme would look like this: 1 create a cursor 2 copy to temp.xls type xl5 Now DDE: 3 open myworksheet.xls within excel 4 append info from temp.xls (open as a different document, cut/paste etc) into myworksheet.xls

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform