public void Print() { //if (!this.PrinterSettings.IsDefaultPrinter && !this.PrinterSettings.PrintDialogDisplayed) //{ // IntSecurity.AllPrinting.Demand(); //} PrintController controller = PrintController; controller.Print(this); }
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); }
/// <summary> /// Prints the document. /// </summary> public void Print() { PrintController controller = PrintController; controller.Print(this); }