Exemplo n.º 1
0
        public void Print()
        {
            //if (!this.PrinterSettings.IsDefaultPrinter && !this.PrinterSettings.PrintDialogDisplayed)
            //{
            //	IntSecurity.AllPrinting.Demand();
            //}
            PrintController controller = PrintController;

            controller.Print(this);
        }
Exemplo n.º 2
0
        public void Print()
        {
            // It is possible to SetPrinterName using signed secured dll which can be used to by-pass Printing security model.
            // hence here check if the PrinterSettings.IsDefaultPrinter and if not demand AllPrinting.
            // Refer : VsWhidbey : 235920
            if (!this.PrinterSettings.IsDefaultPrinter && !this.PrinterSettings.PrintDialogDisplayed)
            {
                IntSecurity.AllPrinting.Demand();
            }
            PrintController controller = PrintController;

            controller.Print(this);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Prints the document.
        /// </summary>
        public void Print()
        {
            PrintController controller = PrintController;

            controller.Print(this);
        }