Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using XLS template in VFP
Message
De
30/05/2005 04:12:35
 
 
À
26/05/2005 00:09:32
Maltin Lacsina
Angeles Electric Corporation
Angeles, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01017708
Message ID:
01018485
Vues:
30
>How to automate excel in vfp with execel file template.

Hi Martin,
You can have look at my rep2exel tool here in downloads.
( Download#14800 freeware/source included. )

It is class object having wrapper methods for most of common automation tasks. So you can write excel sheet using 3d positioning (nSheet,nRow,nColumn)

like ;

oXL.make_cell(nSheet,nRow,nCol,'Hello World')
oXL.table_in_section(i,j,k,cAlias,cFieldsIWant)
oXL.table_in_row(i,j,k,cAlias,cFieldsIWant)
oXL.array_in_section(i,j,k,@myArray)
oXL.insert_picture(i,j,k,cFileName)
oXL.draw_box(nTop,nLeft,nDown,nRight)
etc

There are examples there using templates as well.


Just change value of property 'default_output_dir' in class code
since was originally set to 'C:\windows\desktop' to show on my W98 desktop
back then in 2002.

Rgds++
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform