Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pre-formatted Excel Spreasheet
Message
De
05/04/2004 13:51:38
 
 
À
05/04/2004 12:49:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00892341
Message ID:
00892369
Vues:
21
>My users are entering data into a database application. I would like the application to enter that data into a already pre-generated/created Excel spreadsheet. Is there a way I can print the pre-generated excel spreasheet with the data that's being entered?

Use Automation to Excel, something like this:
oExcel = CreateObject("Excel.Application")
oWorkbook = oExcel.Workbooks.Open(<your file>)
WITH oWorkbook.Sheets(1)
   * These are just examples of what you might do
   .Range("B7").Value = SomeField
   .Range("C9").Value = SomeOtherField
ENDWITH

oWorkbook.PrintOut()

* If you want to save the filled in workbook:
oWorkbook.SaveAs(<filename to save>)

oWorkbook.Close
oXL.Quit
Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform