Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WinFax SDK

Status
Not open for further replies.

MarvinR

Programmer
Oct 29, 2001
37
HK
When I run this code I only got a WinFax Pro SEND screen with preview of the report but without any Telephone No or Company name on it. And there are nothing in the OutBox.

I think the report generated by REPORT FORM can't be processed by oWinFax even I used SetPrintFromApp(1).
I use VFP7, WinFax Pro 10 and WinXP, any idea ? thanks.

* My other program use WinFax's BFT function and that's no problem at all.


oWinFax = CreateObject("WinFax.SDKSend")
oWinFax.SetSubject("Test Fax")
oWinFax.SetNumber("1234567")
oWinFax.SetCompany("Some Company")
oWinFax.AddRecipient()
oWinFax.SetPrintFromApp(1)
oWinFax.Send(1)

SET PRINTER TO NAME winfax
create cursor curTest (lTest l)
insert into curTest (lTest) values (.t.)
report form TestFax to printer noconsole
use in curTest

owinfax.LeaveRunning()
owinfax.done()
RELEASE oWinFax
 
Tried your code with VFP 7.0, Winfax 9.0 and WinNT. Also tried with Win98. It worked fine on both occasions.

That leaves WinXP or Winfax 10.0 as potential culprits....

Jean
 

I tried the same thing on VFP 7, WinFax Pro 10.01 and Win 2000, it WORKS perfectly.

(The version of WinFAx I use on my XP Profess. is 10.02)

It seems that I have to try every combination of configuration before giving it to the user.

Thank you Jesylv.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top