Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing XLS from VFP OLE Error
Message
 
 
À
27/10/2009 17:07:30
Hong Yew
People Quest
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01431759
Message ID:
01431762
Vues:
33
>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

I've tried it and it worked for me (Excel 2007).
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform