- Code: Select all Expand view
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
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