PREVIEW_LETTER Function
Syntax
Arguments
- letter_name
The name of a saved letter. Character
- filter
Optional. Default = ".T." (All records). A character filter expression that evaluates to a logical value and selects records from the table. Character
- order
Optional. Default = record order. A character order expression that sorts selected records.
- modal
Logical. Optional. Default = .F. .T. (TRUE) = The Print Preview window opens as a modal dialog box. This means that the user must first close the Print Preview window before he can move to another window in Alpha Anywhere. .F. (FALSE) = The user does not have to close the Print Preview window before he can move to another window in Alpha Anywhere.
- session_modal
Logical. Optional. Default = .T. .T. (TRUE) = Any script that calls the PREVIEW_LETTER() function will pause until the Print Preview window is closed. However, the Print Preview window itself is not a modal dialog box. The user is free to select other windows in Alpha Anywhere. .F. (FALSE) = The script will not pause until the Print Preview is closed.
- options
*
Description
PRINT_LETTER() creates the selected letters and then displays a preview of the letters.
Example
PREVIEW_LETTER("Letter to Customers", "Company > " + quote("M"), "Bill_Postal_Code", .T., .T.)
Limitations
Desktop applications only.
See Also