Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing XLS from VFP OLE Error
Message
De
27/10/2009 17:07:30
Hong Yew
People Quest
Malaisie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Printing XLS from VFP OLE Error
Divers
Thread ID:
01431759
Message ID:
01431759
Vues:
112
Hi all

I tried to print a XLS worksheet but encountered the following error

OLE Dispath Error: Unable to get Printout property of worksheet class

My codes as follows

oXLS=CreateObject('Excel.Application')
oXLS.Workbooks.Open(....)
oXLS.ActiveWorkBook.Sheets(1).Activate
oXLS.ActiveWorkbook.Sheets(1).Printout

Your advice much appreciated

Thanks & Best Regards
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform