Information about Beacon, authors ofFfax2Send Information for large companies and multi-nationals How to install and configure Fax2Send server and clients Latest News about Fax2Send Fax2Send license Price List Information for Resellers and Channel Partners
Deutsch Italiano    
Download Fax2Send Products Fax2Send Product information Purchase Fax2Send  products Fax2Send support information
 

Search Fax2Send

Advanced
Windows Client Menu
Configure
Active X/OCX
 
 
 

MS Windows Client OCX

The installation of the MS Windows Client also installs the Fax2Send OCX. Developers using tools such as Visual Basic and Visual C++ can use the OCX to integrate Fax2Send with their applications.

Please note that users with Versions 2.1-5 or earlier of the client will need to register the ocx by hand.

Properties
  • BSTR LoginName - Login name of user - read only
  • BSTR JobName - Free format job name for request in queue
  • long LockFileTimeOut - Time in MILLISECONDS
  • long PrintFileTimeOut - Time in SECONDS
  • BSTR FaxNumber - Fax phone number
  • boolean HighResolution - TRUE for 200X200dpi, FALSE for 200X100dpi
  • BSTR SendTime - Format of HHMM or "" for Now!
  • BSTR strError - Strings containing error text.
  • long nError - OCX Error number
  • long nDLLError - Fax2Send DLL error number.

Use Set and Get e.g GetJobName() and SetJobName("My Job name").

Methods
  • boolean StartJob()
  • boolean EndJob()
  • boolean Login()
  • boolean Logout()
  • boolean ClearLockFile()
Sequence of use
  1. Call Login method.
  2. Set LockFileTimeOut and PrintFileTimeOut properties if desired.
  3. For each fax to be sent:
    1. Set FaxNumber, JobName, HighResolution and SendTime properties.
    2. Call StartJob method.
    3. Print to the FAX2SEND printer.
    4. Call EndJob.
  4. Call Logout method.
Default Values for Properties
  • JobName = ""
  • LockFileTimeOut = 1000
  • PrintFileTimeOut = 30
  • FaxNumber = ""
  • HighResolution = TRUE
  • SendTime = ""
  • strError = ""
  • nError = 0
  • nDLLError = 0

The values of Properties are not reset between Jobs.

OCX Error Codes
  1. Success
  2. Job Not Started
  3. DLL Error (see DLL Error Code Value)
  4. Lock File Exists
  5. Cannot access lock file
  6. Too many open files
  7. Permission denied on removing printer file
  8. Failed to close lock file
  9. Permission denied on removing lock file
  10. Lock file does not exist
  11. No fax number
  12. Not logged in
DLL Error Codes
  1. Success
  2. User not logged in
  3. Only one login per process please
  4. Out of memory
  5. Specified file not found
  6. Timeout
  7. Fax2Send not installed properly
  8. Winsock not available
  9. Winsock wrong version or bad exe
  10. Config bad or missing
  11. HP LaserJet III printer driver not installed
  12. Some system error
  13. Connection refused
  14. Command not recognised by server
  15. Reserved
  16. Permission denied
  17. Network error
  18. Winsock error
  19. No faxdaemon found on server
  20. General ufax error
  21. No file association for shellexec
  22. Error with file access, write, move etc
  23. Shell exec error
  24. Connection closed by remote
  25. No more data
  26. Attempt to change printer config when in use
  27. Illegal status mode
  28. Error code on fax2stat command
  29. Not yet implemented
  30. Action already done, ignoring
  31. Invalid user
  32. Admin not available at this time
  33. No ddeml or ddeml failure
  34. No ddeml connection available for server, topic pair
  35. ddeml is busy, should try later
  36. ddeml command not processed by server
  37. some ddeml error
  38. ddeml server is not taking
  39. Express fax permission denied
  40. Reserved
  41. Remote file access error
  42. Queue currently inaccessible
  43. Remote file access reading mailshot file
  44. Remote mailshot file bad / corrupt
  45. Invalid phone number
  46. Banned phone number tried
  47. Cannot access list of express users
  48. Remote system error
  49. fax2 command too long (use less text, or less files)
  50. Local license key is invalid
  51. Reserved
  52. No header file specified with -H flag to fax command
  53. Invalid time format with -t flag
  54. One of the files in the request is empty

Registering the OCX By Hand

  • On Windows 98 and ME the command is:

    C:\Windows\System\Regsvr32.exe c:\Windows\System\Fax2Send.ocx
  • On Windows NT4 and 2000:

    C:\Winnt\System32\Regsvr32.exe c:\Winnt\System32\Fax2Send.ocx