PrintStatus
PrintStatus
Status of printing when a PrintStatus event occurs
Integer property
Applies to: Rich Edit
Introduced in KCML version 5.02
PrintStatus() Event
Called whenever a PrintOpen() or Print() method is completed, with result in PrintStatus property
Applies to: Rich Edit
Introduced in KCML version 5.02
The PrintStatus() event handler is called immediately after a PrintOpen() or Print() method has been invoked on a Rich Text control. Once called the PrintStatus property can be used to determine the status of the print operation.
Possible values for the status are:
| 0 | The print job was created successfully. Now OK to invoke the .Print() method to print the text. |
| 1 | The print job could not be created. |
| 2 | The control contents were printed successfully. |
| 3 | The control was unable to print the contents. |
| 4 | The user cancelled the print setup or printer selection dialogs. |
Example
- DEFEVENT Template.rtfcontrol1.PrintStatus()
SELECT CASE (..PrintStatus)
CASE 0
REM Print open successful
.rtfControl1.Print()
.rtfControl1.PrintClose()
CASE 1
REM Print Open fail
. . .
CASE 2
REM Print document successful
. . .
CASE 3
REM Print document failed
. . .
CASE 4
REM user cancelled dialog
. . .
END SELECT
END EVENT