Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing an Excel Spreadsheet
Message
 
À
30/01/2001 17:02:16
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00470367
Message ID:
00470442
Vues:
31
Try
oExcel.ActiveWindow.SelectedSheets.PrintOut()

>>>>>>>>Your mesage below
Hey All,

Does anyone know how to make Excel print a spreadsheet after it's open from VFP using OLE automation? Existing code is below, thanks for the help.

Jim

oExcel=CREATEOBJECT("Excel.Application")
oExcel.Workbooks.Open(SYS(5) + SYS(2003) +"\docs\compat.xls")
oExcel.Visible=.T.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform