Hi
Can anyone point me to where I can download tWord class or send me a copy.
Regards
Colin
METHOD NEW() CLASS TWord
::lWord := .T.
TRY
::oWord := GetActiveObject( "Word.Application" )
CATCH
TRY
::oWord := CreateObject( "Word.Application" )
CATCH
Alert( "ERROR! Word is not installed on this PC. [" + Ole2TxtError()+ "]" )
::lWord := .F.
END
END
RETURN( Self )
oWord := TWord():New()
//oWord:NewDoc('Creswin.doc') // not working !
oWord:OpenDoc ("d:\xbase\xharbour\tword\Creswin.doc") // working fine
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 45 guests