call Winword
Posted: Sun Mar 27, 2011 7:43 am
I made last year two small function to call wiword,
now on windows seven , this func not run because perhaps he the pc have or not haven't the winword office
How we can do, from a fwh application, see if the pc have a wiword office and call the specific office application if our functions need it ?
and I want Know if there are problems with Tole to call Word.application
Code: Select all
STATIC function stampa_iscrizione()
LOCAL oWord
LOCAL cPath:=CurDrive()+":\"+CurDir()+"\"
oWord:=TOleAuto():New( "Word.Application" )
oWord:Documents:Open(cPath+"modelli\iscrizione.doc")
oWord:Visible := .T.
* oWord:Set( "WindowState", 1 ) // Maximizado
* oWord:END()
RETURN
How we can do, from a fwh application, see if the pc have a wiword office and call the specific office application if our functions need it ?
and I want Know if there are problems with Tole to call Word.application