Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Faxserver document handle
Message
From
25/04/2008 19:03:48
 
 
To
24/04/2008 15:08:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01312742
Message ID:
01313235
Views:
23
This message has been marked as the solution to the initial question of the thread.
At near exhaustion, I finally got SOMETHING to work.
In fact it works like a dream, it's simple and fast.
It bugs me that the Faxserver class always gave me file handle errors!
What would be the big difference here between Faxserver and Faxcomex?

I went to using FAXCOMEX as follows:
		tmpFaxFile = FULLPATH(CURDIR()) + sys(2015)+".TIF"
		oFax = CreateObject("FAXCOMEX.FaxServer")			
		oFax.connect(eFaxSoftW)								
		
		SET PRINTER TO NAME eFaxSoftW +"\Fax"				
		Report Form myreport TO FILE (tmpFaxFile) Noconsole

		oFaxDoc = CreateObject("FAXCOMEX.FaxDocument")		
		oFaxDoc.Body = (tmpFaxFile)							
		
		oFaxDoc.DocumentName = "Our company"
		oFaxDoc.Recipients.Add ("818014895274")
		oFaxDoc.Sender.Name 	= gluser
		oFaxDoc.Sender.Email 	= ""
		oFaxDoc.Sender.FaxNumber = ""
		oFaxDoc.ConnectedSubmit(oFax)		&& Fax it out
		
		oFax.Disconnect()					
		release oFax, oFaxDoc								
		delete file (tmpFaxFile)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform