PrintEditor()

Summary

Prints all or part of an editor window.

Syntax

PrintEditor(string editor_name, integer start_page, integer end_page, array options)

Argument Contents
editor_name Editor name, or null for the current editor window
start_page The first page to be printed
end_page The last page to be printed
Option Type Contents
Flow Direction String "Across" or "Down", indicating the order in which editor pages are printed.
Header Text String String to use as header for each editor page; ignored unless Header Font is also used
Header Font String A font specification; ignored unless Header Text is also used
Footer Text String String to use as footer for each editor page; ignored unless Footer Font is also used
Footer Font String A font specification; ignored unless Footer Text is also used

Notes

  • The printed report uses the exact same fonts, formatting, and layout that are used in the editor itself.

  • To determine the number of pages required to print all of an editor, use EditorPrintSetup(). Start_page and end_page must be specified; they cannot be null.

Example

PrintEditor("Sales Data", 1, 24, )

Error Codes

Error Type Meaning
Escape User cancelled the print job

See Also

Function Summary
EditorPrintSetup() Displays an extended version of the "Print" common dialog, with controls for setting up the printing format for an editor
PrintFigure() Prints a figure as shown in the figure window
PrintMap() Print a map as shown in a map window
PrintLayout() Prints all or part of a layout window