PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Creates a Word file (.RTF) from the data found in a Looper control (browsing Looper control or memory Looper control).
Note: This file can be opened by Word or by OpenOffice Writer (depending on the software installed on the current computer).
Versions 23 and later
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
New in version 23
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
WINDEVLinux This function is now available for WINDEV applications in Linux.
Linux This function is now available for WEBDEV sites in Linux.
Example
WINDEVUser code (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
Syntax
<Result> = <Looper control>.ToWord(<Name of Doc file> [, <Options> [, <Start row> [, <End row>]]])
<Result>: Boolean
  • True if the file was created,
  • False otherwise.
<Looper control>: Control name
Name of Looper control to use.
<Name of Doc file>: Character string (with quotes)
Name and full path of the Word file to create. The file is replaced by the new file if it already exists.
<Options>: Optional Integer constant
Configures the Word file to create.
taSelectedLinesExports the selected rows only (all the rows are exported by default).
Versions 23 and later
taNoTitle
New in version 23
taNoTitle
taNoTitle
Only the data is copied into the file.
taColumnsTitles
(Default value)
The title of columns is inserted into the file.
<Start row>: Optional integer
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>: Optional integer
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.
Remarks
The created file can be opened by Word 95 (or later) or by OpenOffice Writer 2 (or later).
Component : wd240std.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment