I am using VFP to automate faxing via Winfax. The problem I am having with this code is that 3 pages are being sent with each fax and all three are identical even though there should only be 2 different documents. There may be a default cover sheet explaining the third document but why would all three be identical.
I am using VFP 6.0.
The table I am using only has 2 records currently.
sele 11
use fax shared
go top
do while !empty(company) and !eof()
xcompany = company
xname = name
xfaxno = faxno
xsubject = subject
xfilename = filename
xacode = acode
oWinFax = CreateObject("WinFax.SDKSend")
oWinFax.SetSubject(xsubject)
oWinFax.SetNumber(xfaxno)
oWinFax.SetAreaCode(xacode)
oWinFax.SetCompany(xcompany)
oWinFax.AddRecipient() && Required
oWinFax.AddAttachmentFile(xfilename)
oWinFax.SetPrintFromApp(1)
oWinFax.Send(1)
SET PRINTER TO NAME winfax
REPORT FORM testfax TO PRINT NOCONSOLE
RELEASE oWinFax
skip
enddo
use
Thanks,
Jim
I am using VFP 6.0.
The table I am using only has 2 records currently.
sele 11
use fax shared
go top
do while !empty(company) and !eof()
xcompany = company
xname = name
xfaxno = faxno
xsubject = subject
xfilename = filename
xacode = acode
oWinFax = CreateObject("WinFax.SDKSend")
oWinFax.SetSubject(xsubject)
oWinFax.SetNumber(xfaxno)
oWinFax.SetAreaCode(xacode)
oWinFax.SetCompany(xcompany)
oWinFax.AddRecipient() && Required
oWinFax.AddAttachmentFile(xfilename)
oWinFax.SetPrintFromApp(1)
oWinFax.Send(1)
SET PRINTER TO NAME winfax
REPORT FORM testfax TO PRINT NOCONSOLE
RELEASE oWinFax
skip
enddo
use
Thanks,
Jim