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 / Controles, páginas y ventanas / Funciones Looper
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
Creates a Word file (.RTF) using the data from a Looper control.
Remark: This file can be opened in Word or OpenOffice Writer (depending on the software installed on the current workstation).
Ejemplo
WINDEVReportes y ConsultasCódigo de Usuario (UMC)
sFile is string
// File name
sFile = fSelect("", "", "Choose the export file", ...
"Word files (*.rtf) *.rtf", "rtf", fselCreate + fselExist)
// The export is canceled if no name was specified
// Otherwise, export the content of the LOOP_Customer Looper control
IF sFile <> "" THEN
LOOP_Customer.ToWord(sFile)
END
WEBDEV - Código ServidorAjax
sFile is string
// File name
sFile = CompleteDir(fExeDir()) + "MyDOCS" + ConnectionCount() + ".doc"
// The export is canceled if no name was specified
// Otherwise, export the content of the LOOP_Customer Looper control
IF sFile = "" THEN
LOOP_Customer.ToWord(sFile)
END
Sintaxis
<Result> = <Looper control>.ToWord(<Doc file name> [, <Options> [, <Start row> [, <End row>]]])
<Result>: booleano
  • True if the file was created,
  • False otherwise.
<Looper control>: Nombre del control
Name of the Looper control to be used.
<Doc file name>: Cadena de caracteres
Name and full path of the Word file to create. The file is replaced with the new file if it already exists.
<Options>: Constante opcional de tipo Integer
Configures the Word file to create.
taColumnsTitles
(Default value)
The title of the columns is inserted in the file.
taNoTitleOnly the data is copied to the file.
taSelectedLinesExports the selected rows only (all the rows are exported by default).
<Start row>: Entero opcional
Number of the row from which the export will start. If this parameter is not specified, the start row will be the first row found in the Looper control.
<End row>: Entero opcional
Number of the row where the export will end. If this parameter is not specified, the end row is the last row found in the Looper control.
Observaciones
  • The created file can be opened by Word 95 (or later) or by OpenOffice Writer 2 (or later).
  • This function can be used on Looper controls based on a data file or populated programmatically.
Componente: wd300std.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

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