Fax con Fivewin

Moderator: Enrico Maria Giordano

Fax con Fivewin

Postby Pier Luigi » Mon Jul 17, 2006 10:27 am

Dovrei realizzare una applicazione per inviare Fax.
Non ho mai affrontato l'argomento.
Avete qualche consiglio da darmi?

Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Fax con Fivewin

Postby Enrico Maria Giordano » Mon Jul 17, 2006 11:32 am

Ti posso aiutare se usi WinFax.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Fax con Fivewin

Postby Pier Luigi » Mon Jul 17, 2006 11:42 am

Sì, sul computer ho installato WinFax.

Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Fax con Fivewin

Postby Enrico Maria Giordano » Mon Jul 17, 2006 11:47 am

Code: Select all  Expand view
FUNCTION SENDFAX( cFax, cDes, cOgg, cMsg )

    LOCAL lOk := .F.

    LOCAL oFax

    BEGIN SEQUENCE
        oFax = CREATEOBJECT( "WinFax.SDKSend" )

        oFax:LeaveRunning()

        IF oFax:SetTo( cDes ) = 1; BREAK; ENDIF
        IF oFax:SetSubject( cOgg ) = 1; BREAK; ENDIF
        IF oFax:SetCoverText( cMsg ) = 1; BREAK; ENDIF
        IF oFax:SetNumber( cFax ) = 1; BREAK; ENDIF

        IF oFax:AddRecipient() = 1; BREAK; ENDIF

        IF oFax:Send( 0 ) = 1; BREAK; ENDIF

        oFax:Done()

        lOk = .T.
    END SEQUENCE

    RETURN lOk


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Fax con Fivewin

Postby Pier Luigi » Mon Jul 17, 2006 11:58 am

Il programma mi segnala

Error: Unresolved external '_HB_FUN_CREATEOBJECT' ...

Io uso Harbour e FW 2.5.

Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Fax con Fivewin

Postby Enrico Maria Giordano » Mon Jul 17, 2006 12:04 pm

Allora sostituiscilo con

Code: Select all  Expand view
oFax = TOleAuto():New( "WinFax.SDKSend" )


e linka la libreria hbole.lib.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Fax con Fivewin

Postby Pier Luigi » Mon Jul 17, 2006 1:05 pm

Funziona alla grande!

Grazie EMG.

PS
Per curiosità: quale DLL di Winfax viene richiamata?
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Re: Fax con Fivewin

Postby Enrico Maria Giordano » Mon Jul 17, 2006 1:10 pm

Non lo so, mi dispiace.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to All products support

Who is online

Users browsing this forum: No registered users and 20 guests