Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel opens, but minimised
Message
From
29/01/2003 01:20:51
 
 
To
28/01/2003 21:26:02
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00746511
Message ID:
00746550
Views:
31
Steven, if you are opening Excel by using the CREATEOBJECT() method then first set the ExcelObject Windowstate property to maximised (or normal) and then make set the Visible property. Excel will remember its last window state.

If you are using VFP7 and Intellisense is on then in the command window create your object and then type oExcel.Windowstate= and Intellisense will tell you the possible values. They are:

Maximized = -4137
Minimized = -4140
Normal = -4143


Also, I have noticed that if I accidentally leave a dangling reference to an Excel object so that there is a copy of Excel running but hidden then the next Excel object I create will not appear in the forefront but blink on the taskbar instead. I do not know the exact sequence of events to repeat this, since I have not bothered to figure that out, but its along those lines. So make sure you clean up your objects :)



>Would anyone be able to share with me, why, when opening an Excel File through VFP, it appears minimised at the bottom, in spite of me including maximise code, and the minimised icon keeps flickering ?
>
>Regards,
>
>Steve
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform