// Event that is emitted at the start of the print process. public override void OnStartPrint (PrintDocument document, PrintEventArgs e) { IToolkitPrintSession session = GetSession(document); session.StartPrint(e); }
// Event that is emitted at the end of the print process. public override void OnEndPrint (PrintDocument document, PrintEventArgs e) { IToolkitPrintSession session = GetSession(document); try { session.EndPrint(e); } finally { document.session = null; } }
public PreviewPrintController() { this.session = null; // TODO: create a preview session. }