AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Gestión de faxes
  • WLanguage procedure
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Sends a fax according to the connection that was established beforehand (FaxConnect).
Note This function can only be used with Windows 2000, XP or higher. In Windows Vista (and later), the management of faxes is available with Windows Professional and Windows Integral Edition.
Ejemplo
ConnectID is int
ConnectID = FaxConnect()
...
ResSendFax is boolean
ResSendFax = FaxSend(ConnectID, "MyFax", "Message.txt", "0102030405")
...
FaxDisconnect(ConnectID)
Sintaxis
<Result> = FaxSend(<Connection ID> , <Fax name> , <Content file of fax> , <Fax number> [, <Name of cover file> [, <WLanguage procedure>]])
<Result>: Boolean
  • True if the fax was sent,
  • False if an error occurred (in most cases, this error is caused by a configuration problem). To get the details of the error, use ErrorInfo.
<Connection ID>: Integer
Connection identifier, returned by FaxConnect.
<Fax name>: Character string
Name used to identify the outgoing fax. The status of the outgoing fax is returned by FaxStatus.
<Content file of fax>: Character string
Name and path of the file containing the text of the fax (a UNC path can be used). All the types of files that have a "Print" option in their context menu in the explorer can be faxed.
Please note Depending on the type of file to be faxed, the drivers and applications required to manage this type of file must be installed on the workstation. For example, to send a PDF file, the drivers required to manage the PDF format must be installed on the computer.
<Fax number>: Character string
Fax number of the recipient. Please note: if a specific designator is required, it must be specified.
<Name of cover file>: Optional character string
Name and path of the file containing the cover page of the fax. This file must use the format of cover pages (.cov). This file can also be created by the fax manager of Windows. For more details, see Sending faxes.
<WLanguage procedure>: Optional procedure name
Name of the WLanguage procedure ("callback") called whenever the status of the outgoing fax changes. This procedure is used to handle the fax.
This procedure has the following format:
PROCEDURE <Procedure name>(<Fax name>, <Fax status>)

The parameters of this procedure are optional.
There is no need to pass parameters to this procedure. These parameters are automatically filled for each outgoing fax.
Observaciones

WLanguage procedure

Each time the status of the fax sent changes, FaxSend automatically calls the <WLanguage procedure>. This procedure is a global or local procedure of WINDEV or WEBDEV.
To create this procedure:
  1. Create a global procedure in the code editor: in the "Código" pane, in the "Procedimientos" group, pull down "Nuevo" and select "New global procedure".
  2. Fill the procedure declaration as follows:
    PROCEDURE <Procedure name> (<Fax name>, <Fax status>)
    • <Fax name> is the name of the fax used. This name was defined with FaxSend.
    • <Fax status> is one of the constants for fax status (see FaxStatus).
Warning This procedure must not contain a call to the debugger (no breakpoint, no STOP keyword, no auto-stop expression, etc.).
Componente: wd300com.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local