WAITRUN("SumatraPDF.exe -Print-to-default -exit-on-print " + dNameDoc,1)
FUNCTION MAIN( cTel )
LOCAL oFax := CREATEOBJECT( "FaxComEx.FaxServer" )
LOCAL oDoc := CREATEOBJECT( "FaxComEx.FaxDocument" )
IF EMPTY( cTel ); cTel = "0639728261"; ENDIF
oFax:Connect( "" )
oDoc:Body = CURDRIVE() + ":\" + CURDIR() + "\TEST.DOC"
oDoc:DocumentName = "Fax test"
oDoc:Recipients:Add( cTel )
oDoc:Recipients( 0 ):Name = "Enrico Maria Giordano"
oDoc:ConnectedSubmit( oFax )
oFax:Disconnect()
RETURN NIL
FUNCTION MAIN()
LOCAL oFax := CREATEOBJECT( "FaxServer.FaxServer" )
LOCAL oDoc
oFax:Connect( "COM1" )
oDoc = oFax:CreateDocument( "E:\XHARBOUR\FAX.TXT" )
oDoc:FaxNumber = "0639728261"
oDoc:FileName = "E:\XHARBOUR\FAX.TXT"
oDoc:Send()
oDoc:Disconnect()
RETURN NIL
FUNCTION MAIN( cTel )
LOCAL oFax := CREATEOBJECT( "FaxComEx.FaxServer" )
LOCAL oDoc := CREATEOBJECT( "FaxComEx.FaxDocument" )
IF EMPTY( cTel ); cTel = "0639728261"; ENDIF
oFax:Connect( "" )
oDoc:Body = CURDRIVE() + ":\" + CURDIR() + "\TEST.DOC"
oDoc:DocumentName = "Fax test"
oDoc:Recipients:Add( cTel )
oDoc:Recipients[ 1 ]:Name = "Enrico Maria Giordano"
oDoc:ConnectedSubmit( oFax )
oFax:Disconnect()
RETURN NIL
oDoc:Recipients[ 1 ]:Name = "Enrico Maria Giordano"
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Carles and 111 guests