This example demonstrates how to override commands in the Document Preview (DocumentPreviewControl). Create a DocumentPreviewControl descendant and override the corresponding methods, e.g., Print and PrintDirect.
See also: DocumentPreviewControl - How to override the Send command handlers in the toolbar