ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example: Management of print cancellation
iDocumentCanceled (Example)
Example: Management of print cancellation
WINDEVReports and QueriesUser code (UMC) The following example completely stops the current print if the user closes the report viewer before the printing ends or if they click Cancel in the current print window.
// Open report viewer
// Preview in 100 % mode
iDestination(iViewer, i100)
// Browse through customers
HReadFirst(Customer, Key)
WHILE HOut() = False
// Print the name of the customer
iPrint(Customer.CustomerName)
// Interruption if the print was canceled
IF iDocumentCanceled() = True THEN BREAK
// Next customer
HReadNext()
END
// End of prints
iEndPrinting()
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help