Important: The information in this document is obsolete and should not be used for new development.
Chapter 23 -
This chapter describes how a standard print-handler object handles print menu commands such as Print and Print One. It also includes recipes and sample code that demonstrate how to
Working With Printing
For a detailed overview of MacApp's printing support, see "Printing," beginning on page 230.
- work with printing (a general outline)
- create and initialize a standard print handler and associate it with a view
- change the default margin settings
- show page breaks in a view
- define a custom print-handler class to modify page strips
- turn on debugging support for printing in a debug version of your application
For related information, see "Saving a Document's Print Information," beginning on page 403, and "Recipe--Creating Views for Displaying and Printing Versus Printing Only," beginning on page 431.
Chapter Contents
- Overview
- Handling Print Menu Commands
- Recipes--Printing
- Working With Printing--A General Outline
- Recipe--Adding a Standard Print Handler to a View
- Attaching a Print Handler to Its View
- Attaching a Print Handler to Its Document
- Recipe--Changing Default Margin Settings
- Using Minimal Margins
- Installing New Margins
- Recipe--Showing Page Breaks in a View
- Recipe--Defining a Custom Print Handler to Modify Page Strips
- Define a Subclass of TStdPrintHandler
- Override the CalcViewPerPage Method in Your Print Handler
- Override the DoBreakFollowing Method of Your View Class
- Recipe--Turning on Debugging Support for Printing