A few months ago I spent time figuring out how to send reports through Winfax in my FoxPro application.
I used the following code, which i got from a post here on the UT:
oFax = CREATEOBJECT('WinFax.SDKSend8.0')
** Start Code **
oFax.SetTo(lcName)
oFax.SetCompany(lcCompany)
oFax.SetSubject(lcSubject)
oFax.SetNumber(lcNumber)
oFax.AddAttachmentFile(LCFileName)
oFax.SetPrintFromApp(1)
oFax.AddRecipient
oFax.SetUseCover(0) && No Cover Page
oFax.Send(1)
** End Code **
This code worked for for my application.
I have since upgraded my computer, and re-located my development software and project files to the new system. For some reason, now it's not working. When I step through the code in the debugger, it is almost as if the CreateObject('WinFax.SDKSend8.0') isn't creating a WinFax object. It's not giving me an error message, but when the object is created, it doesn't have any of the WinFax properties. As I step through the code that is assigning values to each of the WinFax object properties, (SetTo(), SetCompany(), etc) a new property appears un the debugger window under the oFax object, and every single one that appears has a value of (none).
I have searched the UT for similar posts, and found one, but there were no responses to it.
Can anybody help?
Thanks!