WinFax OLE

WinFax OLE

Postby Enrico Maria Giordano » Sat Apr 22, 2006 2:24 pm

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

Thank you.

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

Re: WinFax OLE

Postby Enrico Maria Giordano » Sat Apr 22, 2006 5:04 pm

I answer myself. This is a working sample:

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Sat Apr 22, 2006 7:16 pm

Enrico,

Very good, master :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Postby RAMESHBABU » Sun Apr 23, 2006 1: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
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby Taiwan » Sun Apr 23, 2006 2: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
User avatar
Taiwan
 
Posts: 218
Joined: Fri Oct 07, 2005 1:55 am
Location: Taipei, Taiwan

Postby Enrico Maria Giordano » Sun Apr 23, 2006 9: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
User avatar
Enrico Maria Giordano
 
Posts: 8715
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 69 guests