PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Management of print cancellation
iDocumentCanceled (Example)
Example: Management of print cancellation
WINDEVUser 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