FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour WinFax OLE
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
WinFax OLE
Posted: Sat Apr 22, 2006 02:24 PM

Dear friends, I'm searching for samples on how to drive WinFax via OLE.

Thank you.

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: WinFax OLE
Posted: Sat Apr 22, 2006 05:04 PM
I answer myself. This is a working sample:

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    DEFINE DIAlOG oDlg

    @ 1, 1 BUTTON "Send fax";
           ACTION SENDFAX()

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


STATIC FUNCTION SENDFAX()

    LOCAL oFax := CREATEOBJECT( "WinFax.SDKSend" )

    oFax:LeaveRunning()

    oFax:SetCoverText( "This is the fax cover." )

    IF FILE( CURDRIVE() + "\" + CURDIR() + "\TEST.DOC" )
        oFax:AddAttachmentFile( CURDRIVE() + "\" + CURDIR() + "\TEST.DOC" )
    ENDIF

    oFax:SetNumber( "your fax number" )
    oFax:AddRecipient()
    oFax:Send( 0 )

    RETURN NIL


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
WinFax OLE
Posted: Sat Apr 22, 2006 07:16 PM

Enrico,

Very good, master :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
WinFax OLE
Posted: Sun Apr 23, 2006 01:56 AM
Hi Mr.Enrico

LOCAL oFax := CREATEOBJECT( "WinFax.SDKSend" )


How do I get this object. Should I link any library like WINFAX.LIB
supplied with BCC55\LIB\PSDK or any DLL ?

Regards

- Ramesh Babu P
Posts: 218
Joined: Fri Oct 07, 2005 01:55 AM
WinFax OLE
Posted: Sun Apr 23, 2006 02:24 AM

Hello RAMESHBABU,

I think no. Because You should be install WinFax software.
It's include ActiveX DLL or OCX ....file and start itself.

Regards,

Richard

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
WinFax OLE
Posted: Sun Apr 23, 2006 09:53 AM
Taiwan wrote:Hello RAMESHBABU,

I think no. Because You should be install WinFax software.
It's include ActiveX DLL or OCX ....file and start itself.

Regards,

Richard


Exactly.

EMG

Continue the discussion