Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP contolling Excel
Message
De
29/04/1999 10:54:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00213446
Message ID:
00213473
Vues:
30
Jeff,

Thanks for the quick and accurate response. If only everything in life was this easy.....

Scott



>>Quick question:
>>
>>We are accessing Excel from VFP and want to change the orientation of the worksheet to landscape. When we record a macro it shows ".ORIENTATION = .xlLandscape". However, VFP doesn't understand xlLandscape saying "Variable not found". How can we get around this?
>>
>>Here's a sample of our code to clarify....
>>
>>oexcel = createobject('excel.application')
>>oexcel.workbooks.add
>>oexcel.activesheet.pagesetup.printheadings = .f.
>>oexcel.activesheet.pagesetup.orientation = xlLandscape
>>
>>
>>Thanks in advance for your help.
>
>Try
>oexcel.activesheet.pagesetup.orientation = 2
>
>HTH
>Jeff
Scott Dinwiddie
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform