예제 #1
0
        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());
        }
예제 #2
0
        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();
        }
예제 #3
0
        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);
        }