public PrinterSettings Print() { this.int_3 = 1; this.int_4 = 0; PrinterPageSetting printerPageSetting = new PrinterPageSetting(this.printDocument_0); printerPageSetting.PrintPage += new PrintPageDelegate(this.method_0); return(printerPageSetting.ShowPrintSetupDialog()); }
public void Preview() { this.int_3 = 1; this.int_4 = 0; PrinterPageSetting printerPageSetting = new PrinterPageSetting(this.printDocument_0); printerPageSetting.PrintPage += new PrintPageDelegate(this.method_0); printerPageSetting.ImportExcelValue = new ImportExcelDelegate(this.ImportExcelMethodHandler); printerPageSetting.ShowPrintPreviewDialog(); }
public PageSettings PageSetup() { PrinterPageSetting printerPageSetting = new PrinterPageSetting(this.printDocument_0); printerPageSetting.PrintPage += new PrintPageDelegate(this.method_0); PageSettings defaultPageSettings = this.printDocument_0.DefaultPageSettings; PageSettings pageSettings = printerPageSetting.ShowPageSetupDialog(); if (defaultPageSettings != pageSettings) { PrinterSingleton.PrintDocument = this.printDocument_0; this.printerMargins_0 = new PrinterMargins(this.printDocument_0); PrinterSingleton.PrinterMargins = this.printerMargins_0; } return(pageSettings); }