Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Pagesetup works - sometimes
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00486890
Message ID:
00486895
Views:
13
Bruce,

Try:
oSheet.PageSetup.CenterHorizontally = .T.
oSheet.PageSetup.PrintGridlines = .T.
It works for me.

>Anyone know why the Excel .Pagesetup properties are hit-and-miss from vfp? >These commands don't work for me (OLE Dispatch class error):

>oSheet.PageSetup.CenterHorizontally = 'True'
>oSheet.PageSetup.PrintGridlines = 'True'

>but some of the others work fine. What gives?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform