|
|
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
- Call Login method.
- Set LockFileTimeOut
and PrintFileTimeOut properties if desired.
- For each fax
to be sent:
- Set FaxNumber,
JobName, HighResolution and SendTime properties.
- Call StartJob
method.
- Print to
the FAX2SEND printer.
- Call EndJob.
- 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
- Success
- Job Not Started
- DLL Error (see
DLL Error Code Value)
- Lock File Exists
- Cannot access
lock file
- Too many open
files
- Permission denied
on removing printer file
- Failed to close
lock file
- Permission denied
on removing lock file
- Lock file does
not exist
- No fax number
- Not logged in
DLL Error Codes
- Success
- User not logged
in
- Only one login
per process please
- Out of memory
- Specified file
not found
- Timeout
- Fax2Send not
installed properly
- Winsock not available
- Winsock wrong
version or bad exe
- Config bad or
missing
- HP LaserJet III
printer driver not installed
- Some system error
- Connection refused
- Command not recognised
by server
- Reserved
- Permission denied
- Network error
- Winsock error
- No faxdaemon
found on server
- General ufax
error
- No file association
for shellexec
- Error with file
access, write, move etc
- Shell exec error
- Connection closed
by remote
- No more data
- Attempt to change
printer config when in use
- Illegal status
mode
- Error code on
fax2stat command
- Not yet implemented
- Action already
done, ignoring
- Invalid user
- Admin not available
at this time
- No ddeml or ddeml
failure
- No ddeml connection
available for server, topic pair
- ddeml is busy,
should try later
- ddeml command
not processed by server
- some ddeml error
- ddeml server
is not taking
- Express fax permission
denied
- Reserved
- Remote file access
error
- Queue currently
inaccessible
- Remote file access
reading mailshot file
- Remote mailshot
file bad / corrupt
- Invalid phone
number
- Banned phone
number tried
- Cannot access
list of express users
- Remote system
error
- fax2 command
too long (use less text, or less files)
- Local license
key is invalid
- Reserved
- No header file
specified with -H flag to fax command
- Invalid time
format with -t flag
- 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
|