Example #1
0
        public void menuPrintPreview()
        {
            MhoraPrintDocument mdoc       = new MhoraPrintDocument(this.h);
            PrintPreviewDialog dlgPreview = new PrintPreviewDialog();

            dlgPreview.Document = mdoc;
            dlgPreview.ShowDialog();
        }
Example #2
0
        public void menuPrint()
        {
            MhoraPrintDocument mdoc     = new MhoraPrintDocument(this.h);
            PrintDialog        dlgPrint = new PrintDialog();

            dlgPrint.Document = mdoc;

            if (dlgPrint.ShowDialog() == DialogResult.OK)
            {
                mdoc.Print();
            }
        }