- Procedure FilePrint(filename[, encoding])
FilePrint
The procedure FilePrint
prints a specific text file using the
currently selected printer.
FilePrint(
filename, ! (input) scalar string expression
encoding ! (optional) scalar element expression
)
Arguments
- filename
A scalar string expression representing the text file that you want to print.
- encoding (optional)
A scalar element expression that results in an element of
AllCharacterEncodings
. If this argument is not specified, the value of the optiondefault_input_character_encoding
is used.
Return Value
The procedure returns 1 on success, and 0 if it could not print the file.
Note
The file is printed using the paper and font settings that are specified
in the Text Printing dialog box, which is accessible from the
Settings
menu.
See also
The procedure FileEdit
.