Esempio n. 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());
        }
Esempio n. 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();
        }
Esempio n. 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);
        }