ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Print functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Forces the report print to stop. The page footer and the "end of document" block are printed.
WINDEVWEBDEV - Server code If the report is printed in the report viewer, the preview window is not closed again.
Remark: This function can only be used in the reports created with the report editor.
Linux Caution: A specific configuration is required to use this function in Linux. For more details, see Print in Linux.
Example
// End of print if the text file is not found
GLOBAL
// Identifier of text file
gfnFileID is int = 0
 
LOCAL
sTextFile is string = fCurrentDir() + "\Reports\Product.txt"
 
// Open the text file
gfnFileID = fOpen(sTextFile, foRead)
IF gfnFileID = -1 THEN
Error(ErrorInfo())
iEndReport() // Stop printing the report
END
// End of print forced when printing a record
IF MySelf..Source.CustomerName = "SMITH" THEN
iEndReport()
END
Syntax
iEndReport()
Business / UI classification: Neutral code
Component: wd300etat.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help