Page 1 of 1

Word VBA instructions in FW

Posted: Thu Mar 08, 2007 11:46 am
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

Posted: Thu Mar 08, 2007 1:32 pm
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

Posted: Thu Mar 08, 2007 4:41 pm
by driessen
Rochinha,

Thanks a lot.

I'll try it out.

Michel