Dear friends, I'm searching for samples on how to drive WinFax via OLE.
Thank you.
EMG
WinFax OLE
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: WinFax OLE
I answer myself. This is a working sample:
EMG
Code: Select all
#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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- RAMESHBABU
- Posts: 591
- Joined: Fri Oct 21, 2005 5:54 am
- Location: Secunderabad (T.S), India
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: