Word VBA instructions in FW

Post Reply
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Word VBA instructions in FW

Post by driessen »

Hello,

How do I put the next lines in a OLE-instruction in FW ?

Code: Select all

    Application.WindowState = wdWindowStateNormal
    Application.Move Left:=0, Top:=43
    Application.Resize Width:=768, Height:=553
Thank you.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Rochinha
Posts: 309
Joined: Sun Jan 08, 2006 10:09 pm
Location: Brasil - Sao Paulo
Contact:

Post by Rochinha »

Code: Select all

          oWord:=TOleAuto():New( "Word.Application" )
          oWord:Documents:Open( "C:\AUTOEXEC.BAT" )
          oWord:Top              := 0
          oWord:Left              := 43
          oWord:Width           :=768 
          oWord:Height          :=553
          oWord:Visible          := .t.
          oWord:Visible          := .t.
          oWord:Visible          := .t.
          oWord:WindowState := 1
User avatar
driessen
Posts: 1239
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Post by driessen »

Rochinha,

Thanks a lot.

I'll try it out.

Michel
Regards,

Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Post Reply