Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing Parent-Child Records to Excell
Message
 
 
À
05/09/2006 09:32:42
David Shedd
Memphis Police Department
Memphis, Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01150914
Message ID:
01150917
Vues:
30
>I am using Office automation from VFP
>
> * Put column headings in Row 5
>   .Range("B6").Value = "Deposit Reciept#"
>   .Range("C6").Value = "Description"
>   .Range("D6").Value = "Deposit Date"
>   .Range("E6").Value = "Check #"
>   .Range("F6").Value = "Debit"
>
>   oRange = .Range("B7:G7")
>  ENDWITH
>
>  * Loop through orders and send data
>  SCAN
>    WITH oRange
>    .Columns[1].Value = ALLTRIM(Deposit_number)
>    .Columns[2].Value = ALLTRIM(Released_to)
>    .Columns[3].Value = DTOC(Deposit_date)
>    .Columns[4].Value = Check_number
>    .Columns[5].Value = Debit
>
>    ENDWITH
I see. Do you use parent/child relationship? May be you can check if you're on eof() in child and don't send data in this case?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform