コード例 #1
0
ファイル: MisGoldPrinter.cs プロジェクト: secondii/Yutai
        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
ファイル: MisGoldPrinter.cs プロジェクト: secondii/Yutai
        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
ファイル: MisGoldPrinter.cs プロジェクト: secondii/Yutai
        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);
        }