PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Example: Managing the cancelation of the print
iDocumentCanceled (Example)
Example: Managing the cancelation of the print
WINDEVReports and QueriesUser code (UMC) The following example completely stops the current print if the user closes the print preview before the end of prints or if he clicks the Cancel button in the current preview window
// Open the print preview in 100 % mode %
iPreview(i100)
// Browse the 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