Fax Software
Community Forums
Home » Topics » WinFax Support Forums » WinFax SDK/DDE Software Development » VFP code
-
Ofax = CREATEOBJECT(“WinFax.SDKSend”)
SET PRINTER TO NAME Winfax
WITH Ofax
.ResetGeneralSettings()
.SetType(0)
.SetTo(“any name”)
.SetCompany(“any comp”)
.SetCountryCode(“”)
.SetAreaCode(“”)
.SetNumber(“1234567”)
.SetSubject(“any subject”)
.SetDeleteAfterSend(0)
.SetResolution(1) && 1=fine resolution
.SetPrintFromApp(1)
.SetUseCover(1)
.SetCoverFile(“C:FAXCOVER1.CVP”) && Any fillable coverpage
.SetCoverText(“This is coverpage text…”)
.AddRecipient
.SetPreviewFax(0)
.SEND(0)
** temp1 is any foxpro report
REPORT FORM c:temp1 TO PRINTER
.Done()
ACTIV SCREEN
CLEAR
IF .IsError == 1
? “By the way: There was an error.. ” ENDIF
? “Last error: “
?? .GetLastError()
FOR i = 1 TO 400
ENDFOR
.LeaveRunning()
ENDWITH
RELEASE Ofax
Thanks for posting some code samples!
😀
- You must be logged in to reply to this topic.