OLE question concerning WINDOWSTATE

OLE question concerning WINDOWSTATE

Postby driessen » Tue Sep 19, 2017 12:51 pm

Hello,

In my application I use an OLE instruction to define the way Word has to be shown

I use :
Code: Select all  Expand view  RUN
oWord:WindowState := 0/1/2
0 = normal window
1 = maximized window
2 = minimized window

Normally this instructions also has to work for Excel or Outlook.

So I use :
Code: Select all  Expand view  RUN
oExcel:WindowState := 0/1/2
oOutlook:WindowState := 0/1/2
But for Excel or Outlook my application is generating an error, although, to the Microsoft documentation WindowState is available both in Excel and Outlook.

Anyone any idea?

Thanks a lot in advance.
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: OLE question concerning WINDOWSTATE

Postby nageswaragunupudi » Tue Sep 19, 2017 7:07 pm

For Excel, please use these constants:
Code: Select all  Expand view  RUN
xlMaximized -4137
xlMinimized -4140
xlNormal    -4143
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10663
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 64 guests