Example #1
0
        // 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);
        }
Example #2
0
        // 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;
            }
        }
Example #3
0
 public PreviewPrintController()
 {
     this.session = null;                        // TODO: create a preview session.
 }
	public PreviewPrintController()
			{
				this.session = null;	// TODO: create a preview session.
			}