Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Foxpro and Excel?
Message
From
14/07/1999 09:24:31
Nikki Bannister
K&M Computer Systems Ltd
Birmingham, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Foxpro and Excel?
Miscellaneous
Thread ID:
00241240
Message ID:
00241240
Views:
48
Hi

I have opened an excel spreadsheet using the code below.

copy to c:\Viewing_master type xls
temp_sheet = getobject('','excel.sheet')
XLApp = temp_sheet.application
XLApp.visible = .t.
XLApp.WorkBooks.open('c:\Viewing_master.xls')

XLApp.WindowState = 1 && Incase minimised

I have two questions,

1. This seems too simple, is there any checks or anything I have missed out?
2. What is the code to then set the pagesetup of this spreadsheet to landscape?

Thanks

Nicky
Next
Reply
Map
View

Click here to load this message in the networking platform