SheetManager

We already discovered how SheetManager is used in the enterprise framework to control the creation and display of all application sheets within a frame. Now we will add another method to this class to control printing. Figure 9-32 shows the additional code required.

Our {print-sheet} method uses the Curl system {print-graphic} procedure to initiate a print job. This procedure has a number of keyword arguments, the first of which is the graphic to print, which we set to be the entire application canvas through the app-canvas reference. Other arguments that could be supplied include indicators as to whether page numbers are required on the printout and whether displaying the print date is necessary.

On execution of the {print-graphic} ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.