/// <summary> /// This method is required for Windows Forms designer support. /// Do not change the method contents inside the source code editor. The Forms designer might /// not be able to load this method if it was changed manually. /// </summary> private void InitializeComponent() { this.previewDlg = new System.Windows.Forms.PrintPreviewDialog(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.panel1 = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // previewDlg // this.previewDlg.AutoScrollMargin = new System.Drawing.Size(0, 0); this.previewDlg.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.previewDlg.ClientSize = new System.Drawing.Size(520, 325); this.previewDlg.Dock = System.Windows.Forms.DockStyle.Fill; this.previewDlg.Enabled = true; this.previewDlg.Location = new System.Drawing.Point(8, 8); this.previewDlg.MinimumSize = new System.Drawing.Size(375, 250); this.previewDlg.Name = "previewDlg"; this.previewDlg.TransparencyKey = System.Drawing.Color.Empty; this.previewDlg.Visible = false; // // printPreviewControl1 // this.printPreviewControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.BackColor = System.Drawing.SystemColors.Window; this.printPreviewControl1.Location = new System.Drawing.Point(8, 8); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(688, 360); this.printPreviewControl1.TabIndex = 1; this.printPreviewControl1.Zoom = 1.3; // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.Controls.Add(this.printPreviewControl1); this.panel1.Location = new System.Drawing.Point(8, 8); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(704, 384); this.panel1.TabIndex = 2; // // PaintArea // this.Controls.Add(this.panel1); this.DockPadding.All = 8; this.BackColor = Color.White; this.Dock = DockStyle.Fill; this.Name = "PaintArea"; this.Size = new System.Drawing.Size(720, 400); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormPrintPreview)); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.SuspendLayout(); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0,0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(831,25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0,""); this.imageListMain.Images.SetKeyName(1,""); this.imageListMain.Images.SetKeyName(2,""); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl2.Location = new System.Drawing.Point(0,0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(831,570); this.printPreviewControl2.TabIndex = 6; // // FormPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.ClientSize = new System.Drawing.Size(831,570); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormPrintPreview"; this.ShowInTaskbar = false; this.Text = "Print Preview"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormPrintPreview_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintPreview)); this.printDialog2 = new System.Windows.Forms.PrintDialog(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.SuspendLayout(); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0, 0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(831, 29); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0, ""); this.imageListMain.Images.SetKeyName(1, ""); this.imageListMain.Images.SetKeyName(2, ""); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl2.Location = new System.Drawing.Point(0, 0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(831, 570); this.printPreviewControl2.TabIndex = 6; // // PrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(831, 570); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "PrintPreview"; this.ShowInTaskbar = false; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.Load += new System.EventHandler(this.FormPrintPreview_Load); this.ResumeLayout(false); }
public void ProviderPatternTest () { PrintPreviewControl printPreviewControl = new PrintPreviewControl (); IRawElementProviderSimple provider = ProviderFactory.GetProvider (printPreviewControl); object scrollProvider = provider.GetPatternProvider (ScrollPatternIdentifiers.Pattern.Id); Assert.IsNotNull (scrollProvider, "Not returning ScrollPatternIdentifiers."); Assert.IsTrue (scrollProvider is IScrollProvider, "Not returning ScrollPatternIdentifiers."); }
public void BasicPropertiesTest () { PrintPreviewControl printPreviewControl = new PrintPreviewControl (); IRawElementProviderSimple provider = ProviderFactory.GetProvider (printPreviewControl); TestProperty (provider, AutomationElementIdentifiers.ControlTypeProperty, ControlType.Pane.Id); TestProperty (provider, AutomationElementIdentifiers.LocalizedControlTypeProperty, "pane"); }
private void m_mthFindControl(System.Windows.Forms.Control controls) { foreach (System.Windows.Forms.Control con in controls.Controls) { if (con.Controls.Count > 1) { m_mthFindControl(con); } if (con is System.Windows.Forms.PrintPreviewControl) { System.Windows.Forms.PrintPreviewControl tempControl = (System.Windows.Forms.PrintPreviewControl)con; tempControl.Zoom = 1; break; } } }
private void InitializeComponent(){ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpPrintPreview)); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.button1 = new OpenDental.UI.Button(); this.SuspendLayout(); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(0,0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842,538); this.printPreviewControl2.TabIndex = 7; this.printPreviewControl2.Zoom = 1; // // button1 // this.button1.AdjustImageLocation = new System.Drawing.Point(0,0); this.button1.Autosize = true; this.button1.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.button1.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.button1.CornerRadius = 4F; this.button1.Location = new System.Drawing.Point(323,709); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75,23); this.button1.TabIndex = 8; this.button1.Text = "next page"; this.button1.Click += new System.EventHandler(this.button1_Click); // // FormRpPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(842,746); this.Controls.Add(this.button1); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormRpPrintPreview"; this.ShowInTaskbar = false; this.Text = "FormRpPrintPreview"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormRpPrintPreview_Load); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpPrintPreview)); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.button1 = new OpenDental.UI.Button(); this.SuspendLayout(); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(0, 0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842, 538); this.printPreviewControl2.TabIndex = 7; this.printPreviewControl2.Zoom = 1; // // button1 // this.button1.AdjustImageLocation = new System.Drawing.Point(0, 0); this.button1.Autosize = true; this.button1.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.button1.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.button1.CornerRadius = 4F; this.button1.Location = new System.Drawing.Point(323, 709); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 8; this.button1.Text = "next page"; this.button1.Click += new System.EventHandler(this.button1_Click); // // FormRpPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.AutoScroll = true; this.ClientSize = new System.Drawing.Size(842, 746); this.Controls.Add(this.button1); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormRpPrintPreview"; this.ShowInTaskbar = false; this.Text = "FormRpPrintPreview"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormRpPrintPreview_Load); this.ResumeLayout(false); }
public PrintPreviewDialog() { this.ClientSize = new Size (400, 300); ToolBar toolbar = CreateToolBar (); toolbar.Location = new Point (0, 0); toolbar.Dock = DockStyle.Top; Controls.Add (toolbar); print_preview = new PrintPreviewControl(); print_preview.Location = new Point (0, toolbar.Location.Y + toolbar.Size.Height); print_preview.Size = new Size (ClientSize.Width, ClientSize.Height - toolbar.Bottom); print_preview.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; print_preview.TabStop = false; Controls.Add (print_preview); print_preview.Show (); }
public ListPrinter(PrintPageSettings ps, PrintPreviewControl pc = null) { pageSettings = ps; printFont = ps.Font; headerFont = ps.HeaderFont; nameBoxWidth = ps.NameBoxWidth; Margins margins = new Margins { Left = ps.LeftMargin, Right = ps.RightMargin, Top = ps.TopMargin, Bottom = ps.BottomMargin }; doc.DefaultPageSettings.Margins = margins; doc.PrintPage += new PrintPageEventHandler(doc_PrintPage); previewControl = pc; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 5 "..\..\..\..\Views\LineCheckInReportWindow.xaml" ((SewingCheckIn.Views.LineCheckInReportWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.printPreview = ((System.Windows.Forms.PrintPreviewControl)(target)); return; } this._contentLoaded = true; }
/// <include file='doc\PrintPreviewDialog.uex' path='docs/doc[@for="PrintPreviewDialog.PrintPreviewDialog"]/*' /> /// <devdoc> /// <para>Initializes a new instance of the <see cref='System.Windows.Forms.PrintPreviewDialog'/> class.</para> /// </devdoc> public PrintPreviewDialog() { #pragma warning disable 618 base.AutoScaleBaseSize = new Size(5, 13); #pragma warning restore 618 this.previewControl = new PrintPreviewControl(); this.imageList = new ImageList(); Bitmap bitmaps = new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewStrip.bmp"); bitmaps.MakeTransparent(); imageList.Images.AddStrip(bitmaps); InitForm(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTPsign)); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.previewContr = new System.Windows.Forms.PrintPreviewControl(); this.panelSig = new System.Windows.Forms.Panel(); this.labelInvalidSig = new System.Windows.Forms.Label(); this.butTopazSign = new OpenDental.UI.Button(); this.butClearSig = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.label1 = new System.Windows.Forms.Label(); this.sigBox = new OpenDental.UI.SignatureBox(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.panelSig.SuspendLayout(); this.SuspendLayout(); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0, ""); this.imageListMain.Images.SetKeyName(1, ""); this.imageListMain.Images.SetKeyName(2, ""); // // previewContr // this.previewContr.AutoZoom = false; this.previewContr.Location = new System.Drawing.Point(10, 41); this.previewContr.Name = "previewContr"; this.previewContr.Size = new System.Drawing.Size(806, 423); this.previewContr.TabIndex = 6; // // panelSig // this.panelSig.Controls.Add(this.labelInvalidSig); this.panelSig.Controls.Add(this.butTopazSign); this.panelSig.Controls.Add(this.butClearSig); this.panelSig.Controls.Add(this.butCancel); this.panelSig.Controls.Add(this.butOK); this.panelSig.Controls.Add(this.label1); this.panelSig.Controls.Add(this.sigBox); this.panelSig.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelSig.Location = new System.Drawing.Point(0, 562); this.panelSig.Name = "panelSig"; this.panelSig.Size = new System.Drawing.Size(842, 92); this.panelSig.TabIndex = 92; // // labelInvalidSig // this.labelInvalidSig.BackColor = System.Drawing.SystemColors.Window; this.labelInvalidSig.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelInvalidSig.Location = new System.Drawing.Point(251, 13); this.labelInvalidSig.Name = "labelInvalidSig"; this.labelInvalidSig.Size = new System.Drawing.Size(196, 59); this.labelInvalidSig.TabIndex = 99; this.labelInvalidSig.Text = "Invalid Signature - Document or note has changed since it was signed."; this.labelInvalidSig.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // butTopazSign // this.butTopazSign.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butTopazSign.Autosize = true; this.butTopazSign.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butTopazSign.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butTopazSign.CornerRadius = 4F; this.butTopazSign.Location = new System.Drawing.Point(537, 35); this.butTopazSign.Name = "butTopazSign"; this.butTopazSign.Size = new System.Drawing.Size(81, 25); this.butTopazSign.TabIndex = 98; this.butTopazSign.Text = "Sign Topaz"; this.butTopazSign.UseVisualStyleBackColor = true; this.butTopazSign.Click += new System.EventHandler(this.butTopazSign_Click); // // butClearSig // this.butClearSig.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butClearSig.Autosize = true; this.butClearSig.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClearSig.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClearSig.CornerRadius = 4F; this.butClearSig.Location = new System.Drawing.Point(537, 4); this.butClearSig.Name = "butClearSig"; this.butClearSig.Size = new System.Drawing.Size(81, 25); this.butClearSig.TabIndex = 97; this.butClearSig.Text = "Clear Sig"; this.butClearSig.Click += new System.EventHandler(this.butClearSig_Click); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.CornerRadius = 4F; this.butCancel.Location = new System.Drawing.Point(741, 57); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75, 25); this.butCancel.TabIndex = 94; this.butCancel.Text = "Cancel"; this.butCancel.UseVisualStyleBackColor = true; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // butOK // this.butOK.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butOK.Autosize = true; this.butOK.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butOK.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butOK.CornerRadius = 4F; this.butOK.Location = new System.Drawing.Point(741, 25); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75, 25); this.butOK.TabIndex = 93; this.butOK.Text = "OK"; this.butOK.UseVisualStyleBackColor = true; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.Location = new System.Drawing.Point(7, 4); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(153, 41); this.label1.TabIndex = 92; this.label1.Text = "Please Sign Here --->"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // sigBox // this.sigBox.Location = new System.Drawing.Point(162, 3); this.sigBox.Name = "sigBox"; this.sigBox.Size = new System.Drawing.Size(362, 79); this.sigBox.TabIndex = 91; this.sigBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sigBox_MouseUp); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0, 0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(842, 25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // FormTPsign // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(842, 654); this.Controls.Add(this.panelSig); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.previewContr); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormTPsign"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormTPsign_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormTPsign_FormClosing); this.panelSig.ResumeLayout(false); this.ResumeLayout(false); }
public abstract void PrintPreviewControlPaint (PaintEventArgs pe, PrintPreviewControl preview, Size page_image_size);
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.panel2 = new System.Windows.Forms.Panel(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.panel1 = new System.Windows.Forms.Panel(); this.m_CboSeleChargeMan = new com.digitalwave.iCare.gui.HIS.exComboBox(); this.label2 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.btnEsc = new PinkieControls.ButtonXP(); this.btnPrint = new PinkieControls.ButtonXP(); this.btnFind = new PinkieControls.ButtonXP(); this.endDate = new System.Windows.Forms.DateTimePicker(); this.startDate = new System.Windows.Forms.DateTimePicker(); this.panel2.SuspendLayout(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.Controls.Add(this.printPreviewControl1); this.panel2.Location = new System.Drawing.Point(0, 48); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(1028, 448); this.panel2.TabIndex = 4; // // printPreviewControl1 // this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl1.Document = this.printDocument1; this.printPreviewControl1.Location = new System.Drawing.Point(0, 0); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(1026, 446); this.printPreviewControl1.TabIndex = 0; this.printPreviewControl1.Zoom = 1; // // printDocument1 // this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint); this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.m_CboSeleChargeMan); this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.btnEsc); this.panel1.Controls.Add(this.btnPrint); this.panel1.Controls.Add(this.btnFind); this.panel1.Controls.Add(this.endDate); this.panel1.Controls.Add(this.startDate); this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(1028, 40); this.panel1.TabIndex = 3; // // m_CboSeleChargeMan // this.m_CboSeleChargeMan.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_CboSeleChargeMan.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.m_CboSeleChargeMan.ItemHeight = 14; this.m_CboSeleChargeMan.Location = new System.Drawing.Point(896, 8); this.m_CboSeleChargeMan.Name = "m_CboSeleChargeMan"; this.m_CboSeleChargeMan.Size = new System.Drawing.Size(120, 22); this.m_CboSeleChargeMan.TabIndex = 46; this.m_CboSeleChargeMan.SelectedIndexChanged += new System.EventHandler(this.m_CboSeleChargeMan_SelectedIndexChanged); // // label2 // this.label2.Location = new System.Drawing.Point(832, 8); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(64, 23); this.label2.TabIndex = 10; this.label2.Text = "缴款人:"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // label1 // this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.label1.ForeColor = System.Drawing.SystemColors.Desktop; this.label1.Location = new System.Drawing.Point(168, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(40, 23); this.label1.TabIndex = 6; this.label1.Text = "到"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // btnEsc // this.btnEsc.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnEsc.DefaultScheme = true; this.btnEsc.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnEsc.Hint = ""; this.btnEsc.Location = new System.Drawing.Point(688, 5); this.btnEsc.Name = "btnEsc"; this.btnEsc.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnEsc.Size = new System.Drawing.Size(96, 29); this.btnEsc.TabIndex = 5; this.btnEsc.Text = "退出(ESC)"; this.btnEsc.Click += new System.EventHandler(this.btnEsc_Click); // // btnPrint // this.btnPrint.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnPrint.DefaultScheme = true; this.btnPrint.DialogResult = System.Windows.Forms.DialogResult.None; this.btnPrint.Hint = ""; this.btnPrint.Location = new System.Drawing.Point(538, 5); this.btnPrint.Name = "btnPrint"; this.btnPrint.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnPrint.Size = new System.Drawing.Size(96, 29); this.btnPrint.TabIndex = 4; this.btnPrint.Text = "打印(&P)"; this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); // // btnFind // this.btnFind.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnFind.DefaultScheme = true; this.btnFind.DialogResult = System.Windows.Forms.DialogResult.None; this.btnFind.Hint = ""; this.btnFind.Location = new System.Drawing.Point(388, 5); this.btnFind.Name = "btnFind"; this.btnFind.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnFind.Size = new System.Drawing.Size(96, 29); this.btnFind.TabIndex = 3; this.btnFind.Text = "统计(&F)"; this.btnFind.Click += new System.EventHandler(this.btnFind_Click); // // endDate // this.endDate.Location = new System.Drawing.Point(214, 8); this.endDate.Name = "endDate"; this.endDate.Size = new System.Drawing.Size(120, 23); this.endDate.TabIndex = 1; // // startDate // this.startDate.Location = new System.Drawing.Point(40, 8); this.startDate.Name = "startDate"; this.startDate.Size = new System.Drawing.Size(120, 23); this.startDate.TabIndex = 0; // // frmIatricalReport // this.AutoScaleBaseSize = new System.Drawing.Size(7, 16); this.ClientSize = new System.Drawing.Size(1028, 501); this.Controls.Add(this.panel1); this.Controls.Add(this.panel2); this.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.Name = "frmIatricalReport"; this.Text = "医保统计表报"; this.Load += new System.EventHandler(this.frmIatricalReport_Load); this.panel2.ResumeLayout(false); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Initializes a new instance of the <see cref="NuGenPrintPreview"/> class. /// </summary> /// <param name="serviceProvider"> /// <para>Requires:</para> /// <para><see cref="INuGenButtonStateTracker"/></para> /// <para><see cref="INuGenControlStateTracker"/></para> /// <para><see cref="INuGenInt32ValueConverter"/></para> /// <para><see cref="INuGenMenuItemCheckedTracker"/></para> /// <para><see cref="INuGenPrintPreviewToolStripManager"/></para> /// <para><see cref="INuGenSpinRenderer"/></para> /// <para><see cref="INuGenToolStripRenderer"/></para> /// </param> /// <exception cref="ArgumentNullException"><paramref name="serviceProvider"/> is <see langword="null"/>.</exception> public NuGenPrintPreview(INuGenServiceProvider serviceProvider) : base(serviceProvider) { _toolStrip = new NuGenToolStrip(serviceProvider); _pageSpin = new NuGenToolStripSpin(serviceProvider); _previewControl = new PrintPreviewControl(); _previewControl.Dock = DockStyle.Fill; _previewControl.StartPageChanged += _previewControl_StartPageChanged; _pageSpin.Alignment = ToolStripItemAlignment.Right; _pageSpin.Enabled = false; _pageSpin.Minimum = 0; _pageSpin.Maximum = 1000; _pageSpin.Width = 50; _pageSpin.ValueChanged += _pageSpin_ValueChanged; _pageSpin.Value = 1; ToolStripButton closeButton = this.ToolStripManager.GetCloseToolStripButton(); ToolStripButton fourPagesButton = this.ToolStripManager.GetFourPagesToolStripButton(); ToolStripLabel pageLabel = this.ToolStripManager.GetPageToolStripLabel(); ToolStripButton printButton = this.ToolStripManager.GetPrintToolStripButton(); ToolStripButton singlePageButton = this.ToolStripManager.GetSinglePageToolStripButton(); ToolStripButton twoPagesButton = this.ToolStripManager.GetTwoPagesToolStripButton(); ToolStripDropDownButton zoomButton = this.ToolStripManager.GetZoomToolStripDropDownButton(); closeButton.Click += _closeButton_Click; fourPagesButton.Click += _fourPagesButton_Click; printButton.Click += _printButton_Click; singlePageButton.Click += _singlePageButton_Click; twoPagesButton.Click += _twoPagesButton_Click; pageLabel.Alignment = ToolStripItemAlignment.Right; zoomButton.DropDownItems.AddRange( new ToolStripItem[] { _autoZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_Auto, true) , _500ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_500Percent, 5.00f) , _250ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_250Percent, 2.50f) , _150ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_150Percent, 1.50f) , _100ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_100Percent, 1.00f) , _75ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_75Percent, 0.75f) , _50ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_50Percent, 0.50f) , _25ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_25Percent, 0.25f) , _10ZoomItem = new ZoomMenuItem(Resources.Text_ZoomButton_10Percent, 0.10f) } ); foreach (ToolStripMenuItem menuItem in zoomButton.DropDownItems) { menuItem.Click += _zoomPercent_Click; } this.CheckZoomMenuItem(_autoZoomItem); _toolStrip.Items.AddRange( new ToolStripItem[] { printButton , zoomButton , new ToolStripSeparator() , singlePageButton , twoPagesButton , fourPagesButton , new ToolStripSeparator() , closeButton , _pageSpin , pageLabel } ); this.Controls.Add(_previewControl); this.Controls.Add(_toolStrip); this.MinimizeBox = false; this.Size = new Size(640, 480); this.ShowInTaskbar = false; }
private void InitForm() { // Create the controls this.previewControl = new PrintPreviewControl(); this.previewControl.TabIndex = 1; this.previewControl.Size = new Size(0x318, 610); this.previewControl.Location = new Point(0, 0x2b); this.previewControl.Dock = DockStyle.Fill; this.previewControl.StartPageChanged += new EventHandler(this.previewControl_StartPageChanged); this.imageList = new ImageList(); this.printButton = new ToolBarButton(); this.printButton.ToolTipText = resources.GetString("PrintPreviewDialog_Print"); this.printButton.ImageIndex = 0; this.zoomButton = new ToolBarButton(); this.zoomButton.ToolTipText = resources.GetString("PrintPreviewDialog_Zoom"); this.zoomButton.ImageIndex = 1; this.zoomButton.Style = ToolBarButtonStyle.DropDownButton; this.zoomButton.DropDownMenu = this.menu; this.separator1 = new ToolBarButton(); this.separator1.Style = ToolBarButtonStyle.Separator; this.singlePage = new ToolBarButton(); this.singlePage.ToolTipText = resources.GetString("PrintPreviewDialog_OnePage"); this.singlePage.ImageIndex = 2; this.twoPages = new ToolBarButton(); this.twoPages.ToolTipText = resources.GetString("PrintPreviewDialog_TwoPages"); this.twoPages.ImageIndex = 3; this.threePages = new ToolBarButton(); this.threePages.ToolTipText = resources.GetString("PrintPreviewDialog_ThreePages"); this.threePages.ImageIndex = 4; this.fourPages = new ToolBarButton(); this.fourPages.ToolTipText = resources.GetString("PrintPreviewDialog_FourPages"); this.fourPages.ImageIndex = 5; this.sixPages = new ToolBarButton(); this.sixPages.ToolTipText = resources.GetString("PrintPreviewDialog_SixPages"); this.sixPages.ImageIndex = 6; this.separator2 = new ToolBarButton(); this.separator2.Style = ToolBarButtonStyle.Separator; this.closeButton = new Button(); this.closeButton.Location = new Point(0xc4, 2); this.closeButton.Size = new Size(50, 20); this.closeButton.TabIndex = 2; this.closeButton.FlatStyle = FlatStyle.Popup; this.closeButton.Text = resources.GetString("PrintPreviewDialog_Close"); this.closeButton.Click += new EventHandler(this.closeButton_Click); this.pageLabel = new Label(); this.pageLabel.Text = resources.GetString("PrintPreviewDialog_Page"); this.pageLabel.TabStop = false; this.pageLabel.Location = new Point(510, 4); this.pageLabel.Size = new Size(50, 0x18); this.pageLabel.TextAlign = ContentAlignment.MiddleLeft; this.pageLabel.Dock = DockStyle.Right; this.pageCounter = new NumericUpDown(); this.pageCounter.TabIndex = 1; this.pageCounter.Text = "1"; this.pageCounter.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.pageCounter.DecimalPlaces = 0; this.pageCounter.Minimum = new decimal(0); this.pageCounter.Maximum = new decimal(1000); this.pageCounter.ValueChanged += new EventHandler(this.UpdownMove); this.pageCounter.Size = new Size(0x40, 20); this.pageCounter.Dock = DockStyle.Right; this.pageCounter.Location = new Point(0x238, 0); this.toolBar1 = new ToolBar(); this.toolBar1.ImageList = this.imageList; this.toolBar1.Dock = DockStyle.Top; this.toolBar1.Appearance = ToolBarAppearance.Flat; this.toolBar1.TabIndex = 3; this.toolBar1.Size = new Size(0x318, 0x2b); this.toolBar1.ShowToolTips = true; this.toolBar1.DropDownArrows = true; this.toolBar1.Buttons.AddRange(new ToolBarButton[] { this.printButton, this.zoomButton, this.separator1, this.singlePage, this.twoPages, this.threePages, this.fourPages, this.sixPages, this.separator2}); this.toolBar1.Controls.Add(this.closeButton); this.toolBar1.Controls.Add(this.pageLabel); this.toolBar1.Controls.Add(this.pageCounter); this.toolBar1.ButtonClick += new ToolBarButtonClickEventHandler(this.ToolBarClick); this.zoomMenu0 = new MenuItem(resources.GetString("PrintPreviewDialog_ZoomAuto"), new EventHandler(this.ZoomAuto)); this.zoomMenu1 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom500"), new EventHandler(this.Zoom500)); this.zoomMenu2 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom200"), new EventHandler(this.Zoom250)); this.zoomMenu3 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom150"), new EventHandler(this.Zoom150)); this.zoomMenu4 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom100"), new EventHandler(this.Zoom100)); this.zoomMenu5 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom75"), new EventHandler(this.Zoom75)); this.zoomMenu6 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom50"), new EventHandler(this.Zoom50)); this.zoomMenu7 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom25"), new EventHandler(this.Zoom25)); this.zoomMenu8 = new MenuItem(resources.GetString("PrintPreviewDialog_Zoom10"), new EventHandler(this.Zoom10)); this.zoomMenu0.Checked = true; this.menu.MenuItems.AddRange(new MenuItem[] { this.zoomMenu0, this.zoomMenu1, this.zoomMenu2, this.zoomMenu3, this.zoomMenu4, this.zoomMenu5, this.zoomMenu6, this.zoomMenu7, this.zoomMenu8 }); this.Text = resources.GetString("PrintPreviewDialog_PrintPreview"); this.MinimizeBox = false; this.ShowInTaskbar = false; this.SizeGripStyle = SizeGripStyle.Hide; base.ClientSize = new Size(400, 300); base.Controls.Add(this.previewControl); base.Controls.Add(this.toolBar1); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTPsign)); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.previewContr = new System.Windows.Forms.PrintPreviewControl(); this.panelSig = new System.Windows.Forms.Panel(); this.labelInvalidSig = new System.Windows.Forms.Label(); this.butTopazSign = new OpenDental.UI.Button(); this.butClearSig = new OpenDental.UI.Button(); this.butCancel = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.label1 = new System.Windows.Forms.Label(); this.sigBox = new OpenDental.UI.SignatureBox(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.panelSig.SuspendLayout(); this.SuspendLayout(); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0,""); this.imageListMain.Images.SetKeyName(1,""); this.imageListMain.Images.SetKeyName(2,""); // // previewContr // this.previewContr.AutoZoom = false; this.previewContr.Location = new System.Drawing.Point(10,41); this.previewContr.Name = "previewContr"; this.previewContr.Size = new System.Drawing.Size(806,423); this.previewContr.TabIndex = 6; // // panelSig // this.panelSig.Controls.Add(this.labelInvalidSig); this.panelSig.Controls.Add(this.butTopazSign); this.panelSig.Controls.Add(this.butClearSig); this.panelSig.Controls.Add(this.butCancel); this.panelSig.Controls.Add(this.butOK); this.panelSig.Controls.Add(this.label1); this.panelSig.Controls.Add(this.sigBox); this.panelSig.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelSig.Location = new System.Drawing.Point(0,562); this.panelSig.Name = "panelSig"; this.panelSig.Size = new System.Drawing.Size(842,92); this.panelSig.TabIndex = 92; // // labelInvalidSig // this.labelInvalidSig.BackColor = System.Drawing.SystemColors.Window; this.labelInvalidSig.Font = new System.Drawing.Font("Microsoft Sans Serif",8.25F,System.Drawing.FontStyle.Regular,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.labelInvalidSig.Location = new System.Drawing.Point(251,13); this.labelInvalidSig.Name = "labelInvalidSig"; this.labelInvalidSig.Size = new System.Drawing.Size(196,59); this.labelInvalidSig.TabIndex = 99; this.labelInvalidSig.Text = "Invalid Signature - Document or note has changed since it was signed."; this.labelInvalidSig.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // butTopazSign // this.butTopazSign.AdjustImageLocation = new System.Drawing.Point(0,0); this.butTopazSign.Autosize = true; this.butTopazSign.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butTopazSign.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butTopazSign.CornerRadius = 4F; this.butTopazSign.Location = new System.Drawing.Point(537,35); this.butTopazSign.Name = "butTopazSign"; this.butTopazSign.Size = new System.Drawing.Size(81,25); this.butTopazSign.TabIndex = 98; this.butTopazSign.Text = "Sign Topaz"; this.butTopazSign.UseVisualStyleBackColor = true; this.butTopazSign.Click += new System.EventHandler(this.butTopazSign_Click); // // butClearSig // this.butClearSig.AdjustImageLocation = new System.Drawing.Point(0,0); this.butClearSig.Autosize = true; this.butClearSig.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClearSig.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClearSig.CornerRadius = 4F; this.butClearSig.Location = new System.Drawing.Point(537,4); this.butClearSig.Name = "butClearSig"; this.butClearSig.Size = new System.Drawing.Size(81,25); this.butClearSig.TabIndex = 97; this.butClearSig.Text = "Clear Sig"; this.butClearSig.Click += new System.EventHandler(this.butClearSig_Click); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0,0); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.CornerRadius = 4F; this.butCancel.Location = new System.Drawing.Point(741,57); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75,25); this.butCancel.TabIndex = 94; this.butCancel.Text = "Cancel"; this.butCancel.UseVisualStyleBackColor = true; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // butOK // this.butOK.AdjustImageLocation = new System.Drawing.Point(0,0); this.butOK.Autosize = true; this.butOK.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butOK.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butOK.CornerRadius = 4F; this.butOK.Location = new System.Drawing.Point(741,25); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75,25); this.butOK.TabIndex = 93; this.butOK.Text = "OK"; this.butOK.UseVisualStyleBackColor = true; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // label1 // this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif",9F,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.label1.Location = new System.Drawing.Point(7,4); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(153,41); this.label1.TabIndex = 92; this.label1.Text = "Please Sign Here --->"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // sigBox // this.sigBox.Location = new System.Drawing.Point(162,3); this.sigBox.Name = "sigBox"; this.sigBox.Size = new System.Drawing.Size(362,79); this.sigBox.TabIndex = 91; this.sigBox.MouseUp += new System.Windows.Forms.MouseEventHandler(this.sigBox_MouseUp); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0,0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(842,25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // FormTPsign // this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.ClientSize = new System.Drawing.Size(842,654); this.Controls.Add(this.panelSig); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.previewContr); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormTPsign"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormTPsign_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormTPsign_FormClosing); this.panelSig.ResumeLayout(false); this.ResumeLayout(false); }
private void InitializeComponent() { MxToolBar bar = new MxToolBar(); ToolBarButton button = new ToolBarButton(); ToolBarButton button2 = new ToolBarButton(); ImageList list = new ImageList(); this._commandBar = new CommandBar(); this._printButton = new MxToolBarButton(); this._closeButton = new MxToolBarButton(); this._firstButton = new MxToolBarButton(); this._lastButton = new MxToolBarButton(); this._nextButton = new MxToolBarButton(); this._prevButton = new MxToolBarButton(); this._zoomButton = new ComboBoxToolBarButton(); this._settingsButton = new MxToolBarButton(); this._onePageButton = new MxToolBarButton(); this._twoPagesButton = new MxToolBarButton(); this._fourPagesButton = new MxToolBarButton(); this._preview = new PrintPreviewControl(); this._statusBar = new MxStatusBar(); this._textPanel = new MxStatusBarPanel(); this._progressPanel = new ProgressStatusBarPanel(); this._pageIndexPanel = new MxStatusBarPanel(); list.ImageSize = new Size(0x10, 0x10); list.TransparentColor = Color.Fuchsia; list.ColorDepth = ColorDepth.Depth32Bit; list.Images.AddStrip(new Bitmap(typeof(PrintPreviewDialog), "PrintPreviewCommands.bmp")); this._printButton.Text = "Print"; this._printButton.ToolTipText = "Print this document"; this._printButton.ImageIndex = 0; this._printButton.Tag = 1; this._printButton.Enabled = false; this._closeButton.Text = "Close"; this._closeButton.ToolTipText = "Close and return to document"; this._closeButton.ImageIndex = 1; this._closeButton.Tag = 2; this._firstButton.ToolTipText = "Go to the first page"; this._firstButton.ImageIndex = 2; this._firstButton.Tag = 5; this._firstButton.Enabled = false; this._prevButton.ToolTipText = "Go to the previous page"; this._prevButton.ImageIndex = 3; this._prevButton.Tag = 4; this._prevButton.Enabled = false; this._nextButton.ToolTipText = "Go to the next page"; this._nextButton.ImageIndex = 4; this._nextButton.Tag = 3; this._nextButton.Enabled = false; this._lastButton.ToolTipText = "Go to the last page"; this._lastButton.ImageIndex = 5; this._lastButton.Tag = 6; this._lastButton.Enabled = false; this._zoomButton.Text = "_____________"; this._zoomButton.ComboBoxItems = new string[] { "Fit to Window", "25%", "50%", "100%", "150%", "200%" }; this._settingsButton.ToolTipText = "Printer Settings"; this._settingsButton.ImageIndex = 6; this._settingsButton.Tag = 7; this._onePageButton.ToolTipText = "One Page at a time"; this._onePageButton.ImageIndex = 7; this._onePageButton.Tag = 8; this._onePageButton.Pushed = true; this._onePageButton.Enabled = false; this._twoPagesButton.ToolTipText = "Two pages at a time"; this._twoPagesButton.ImageIndex = 8; this._twoPagesButton.Tag = 9; this._twoPagesButton.Enabled = false; this._fourPagesButton.ToolTipText = "Four pages at a time"; this._fourPagesButton.ImageIndex = 9; this._fourPagesButton.Tag = 10; this._fourPagesButton.Enabled = false; button.Style = ToolBarButtonStyle.Separator; button2.Style = ToolBarButtonStyle.Separator; bar.Divider = false; bar.Appearance = ToolBarAppearance.Flat; bar.TextAlign = ToolBarTextAlign.Right; bar.Wrappable = false; bar.ShowToolTips = true; bar.DropDownArrows = false; bar.TabIndex = 0; bar.ImageList = list; bar.ButtonClick += new ToolBarButtonClickEventHandler(this.OnToolBarButtonClicked); bar.ComboBoxCreated += new ToolBarComboBoxButtonEventHandler(this.OnToolBarComboBoxCreated); bar.Buttons.AddRange(new ToolBarButton[] { this._printButton, this._settingsButton, this._closeButton, button, this._zoomButton, this._onePageButton, this._twoPagesButton, this._fourPagesButton, button2, this._firstButton, this._prevButton, this._nextButton, this._lastButton }); this._commandBar.Dock = DockStyle.Top; this._commandBar.TabIndex = 0; this._commandBar.Controls.Add(bar); this._preview.Dock = DockStyle.Fill; this._preview.TabIndex = 1; this._preview.TabStop = false; this._preview.StartPageChanged += new EventHandler(this.OnPreviewStartPageChanged); this._textPanel.AutoSize = StatusBarPanelAutoSize.Spring; this._progressPanel.MinWidth = 0x80; this._progressPanel.Width = 0x80; this._pageIndexPanel.Alignment = HorizontalAlignment.Center; this._pageIndexPanel.AutoSize = StatusBarPanelAutoSize.Contents; this._pageIndexPanel.MinWidth = 0x80; this._statusBar.Dock = DockStyle.Bottom; this._statusBar.TabStop = false; this._statusBar.ShowPanels = true; this._statusBar.Panels.AddRange(new StatusBarPanel[] { this._textPanel, this._progressPanel, this._pageIndexPanel }); this.Text = "Print Preview"; base.Size = new Size(800, 600); base.MinimumSize = new Size(200, 150); base.ShowInTaskbar = false; base.MinimizeBox = false; base.SizeGripStyle = SizeGripStyle.Show; base.StartPosition = FormStartPosition.CenterParent; base.Icon = new Icon(typeof(PrintPreviewDialog), "PrintPreviewDialog.ico"); base.Controls.AddRange(new Control[] { this._preview, this._commandBar, this._statusBar }); }
/// <summary> /// Returns an observable sequence wrapping the StartPageChanged event on the PrintPreviewControl instance. /// </summary> /// <param name="instance">The PrintPreviewControl instance to observe.</param> /// <returns>An observable sequence wrapping the StartPageChanged event on the PrintPreviewControl instance.</returns> public static IObservable <EventPattern <EventArgs> > StartPageChangedObservable(this PrintPreviewControl instance) { return(Observable.FromEventPattern <EventHandler, EventArgs>( handler => instance.StartPageChanged += handler, handler => instance.StartPageChanged -= handler)); }
private void InitializeComponent(){ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormClaimPrint)); this.butClose = new OpenDental.UI.Button(); this.Preview2 = new System.Windows.Forms.PrintPreviewControl(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.butPrint = new OpenDental.UI.Button(); this.labelTotPages = new System.Windows.Forms.Label(); this.butBack = new OpenDental.UI.Button(); this.butFwd = new OpenDental.UI.Button(); this.SuspendLayout(); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0,0); this.butClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butClose.Location = new System.Drawing.Point(770,768); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75,25); this.butClose.TabIndex = 0; this.butClose.Text = "&Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // Preview2 // this.Preview2.AutoZoom = false; this.Preview2.Location = new System.Drawing.Point(0,0); this.Preview2.Name = "Preview2"; this.Preview2.Size = new System.Drawing.Size(738,798); this.Preview2.TabIndex = 1; this.Preview2.Zoom = 1; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0,0); this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Location = new System.Drawing.Point(769,728); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75,25); this.butPrint.TabIndex = 2; this.butPrint.Text = "&Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // labelTotPages // this.labelTotPages.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.labelTotPages.Font = new System.Drawing.Font("Microsoft Sans Serif",9F,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.labelTotPages.Location = new System.Drawing.Point(774,679); this.labelTotPages.Name = "labelTotPages"; this.labelTotPages.Size = new System.Drawing.Size(54,18); this.labelTotPages.TabIndex = 22; this.labelTotPages.Text = "1 / 2"; this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // butBack // this.butBack.AdjustImageLocation = new System.Drawing.Point(0,0); this.butBack.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butBack.Autosize = true; this.butBack.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butBack.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butBack.CornerRadius = 4F; this.butBack.Image = global::OpenDental.Properties.Resources.Left; this.butBack.Location = new System.Drawing.Point(752,676); this.butBack.Name = "butBack"; this.butBack.Size = new System.Drawing.Size(18,23); this.butBack.TabIndex = 23; this.butBack.Click += new System.EventHandler(this.butBack_Click); // // butFwd // this.butFwd.AdjustImageLocation = new System.Drawing.Point(1,0); this.butFwd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butFwd.Autosize = true; this.butFwd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFwd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFwd.CornerRadius = 4F; this.butFwd.Image = global::OpenDental.Properties.Resources.Right; this.butFwd.Location = new System.Drawing.Point(830,676); this.butFwd.Name = "butFwd"; this.butFwd.Size = new System.Drawing.Size(18,23); this.butFwd.TabIndex = 24; this.butFwd.Click += new System.EventHandler(this.butFwd_Click); // // FormClaimPrint // this.AcceptButton = this.butPrint; this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.CancelButton = this.butClose; this.ClientSize = new System.Drawing.Size(860,816); this.Controls.Add(this.labelTotPages); this.Controls.Add(this.butBack); this.Controls.Add(this.butFwd); this.Controls.Add(this.butPrint); this.Controls.Add(this.Preview2); this.Controls.Add(this.butClose); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormClaimPrint"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Print Claim"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormClaimPrint_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormClaimPrint_Layout); this.ResumeLayout(false); }
// Required method for Designer support - do not modify // the contents of this method with the code editor. private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintPreviewForm)); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog(); this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.tbtPrint = new System.Windows.Forms.ToolBarButton(); this.tlbtZoom = new System.Windows.Forms.ToolBarButton(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuAuto = new System.Windows.Forms.MenuItem(); this.menu10 = new System.Windows.Forms.MenuItem(); this.menu25 = new System.Windows.Forms.MenuItem(); this.menu50 = new System.Windows.Forms.MenuItem(); this.menu75 = new System.Windows.Forms.MenuItem(); this.menu100 = new System.Windows.Forms.MenuItem(); this.menu150 = new System.Windows.Forms.MenuItem(); this.menu200 = new System.Windows.Forms.MenuItem(); this.menu250 = new System.Windows.Forms.MenuItem(); this.menu500 = new System.Windows.Forms.MenuItem(); this.separator2 = new System.Windows.Forms.ToolBarButton(); this.tbtOne = new System.Windows.Forms.ToolBarButton(); this.tbtTwo = new System.Windows.Forms.ToolBarButton(); this.tbtThree = new System.Windows.Forms.ToolBarButton(); this.tbtFour = new System.Windows.Forms.ToolBarButton(); this.tbtSix = new System.Windows.Forms.ToolBarButton(); this.tbtPageSetup = new System.Windows.Forms.ToolBarButton(); this.toolbarImages = new System.Windows.Forms.ImageList(this.components); this.printPreviewDialog2 = new System.Windows.Forms.PrintPreviewDialog(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.winButton1 = new Xceed.Editors.WinButton(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // printPreviewControl1 // this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl1.Location = new System.Drawing.Point(0, 34); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(592, 332); this.printPreviewControl1.TabIndex = 0; this.printPreviewControl1.Zoom = 0.30000001192092896; this.printPreviewControl1.SizeChanged += new System.EventHandler(this.printPreviewControl1_SizeChanged); // // pageSetupDialog1 // this.pageSetupDialog1.ShowHelp = true; // // printPreviewDialog1 // this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog1.Enabled = true; this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon"))); this.printPreviewDialog1.Name = "printPreviewDialog1"; this.printPreviewDialog1.Visible = false; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.AutoSize = false; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbtPrint, this.tlbtZoom, this.separator2, this.tbtOne, this.tbtTwo, this.tbtThree, this.tbtFour, this.tbtSix, this.tbtPageSetup }); this.toolBar1.ButtonSize = new System.Drawing.Size(20, 20); this.toolBar1.Divider = false; this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.toolbarImages; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(592, 34); this.toolBar1.TabIndex = 1; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // tbtPrint // this.tbtPrint.ImageIndex = 0; this.tbtPrint.Name = "tbtPrint"; this.tbtPrint.Tag = "Print"; this.tbtPrint.ToolTipText = "´òÓ¡"; // // tlbtZoom // this.tlbtZoom.DropDownMenu = this.contextMenu1; this.tlbtZoom.ImageIndex = 1; this.tlbtZoom.Name = "tlbtZoom"; this.tlbtZoom.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuAuto, this.menu10, this.menu25, this.menu50, this.menu75, this.menu100, this.menu150, this.menu200, this.menu250, this.menu500 }); // // menuAuto // this.menuAuto.Checked = true; this.menuAuto.DefaultItem = true; this.menuAuto.Index = 0; this.menuAuto.Text = "×Ô¶¯"; this.menuAuto.Click += new System.EventHandler(this.menuItem1_Click); // // menu10 // this.menu10.Index = 1; this.menu10.Text = "10%"; this.menu10.Click += new System.EventHandler(this.menuItem1_Click); // // menu25 // this.menu25.Index = 2; this.menu25.Text = "25%"; this.menu25.Click += new System.EventHandler(this.menuItem1_Click); // // menu50 // this.menu50.Index = 3; this.menu50.Text = "50%"; this.menu50.Click += new System.EventHandler(this.menuItem1_Click); // // menu75 // this.menu75.Index = 4; this.menu75.Text = "75%"; this.menu75.Click += new System.EventHandler(this.menuItem1_Click); // // menu100 // this.menu100.Index = 5; this.menu100.Text = "100%"; this.menu100.Click += new System.EventHandler(this.menuItem1_Click); // // menu150 // this.menu150.Index = 6; this.menu150.Text = "150%"; this.menu150.Click += new System.EventHandler(this.menuItem1_Click); // // menu200 // this.menu200.Index = 7; this.menu200.Text = "200%"; this.menu200.Click += new System.EventHandler(this.menuItem1_Click); // // menu250 // this.menu250.Index = 8; this.menu250.Text = "250%"; this.menu250.Click += new System.EventHandler(this.menuItem1_Click); // // menu500 // this.menu500.Index = 9; this.menu500.Text = "500%"; this.menu500.Click += new System.EventHandler(this.menuItem1_Click); // // separator2 // this.separator2.Name = "separator2"; this.separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbtOne // this.tbtOne.ImageIndex = 5; this.tbtOne.Name = "tbtOne"; this.tbtOne.Pushed = true; // // tbtTwo // this.tbtTwo.ImageIndex = 6; this.tbtTwo.Name = "tbtTwo"; // // tbtThree // this.tbtThree.ImageIndex = 7; this.tbtThree.Name = "tbtThree"; // // tbtFour // this.tbtFour.ImageIndex = 8; this.tbtFour.Name = "tbtFour"; // // tbtSix // this.tbtSix.ImageIndex = 9; this.tbtSix.Name = "tbtSix"; // // tbtPageSetup // this.tbtPageSetup.ImageIndex = 10; this.tbtPageSetup.Name = "tbtPageSetup"; this.tbtPageSetup.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbtPageSetup.Tag = "PageSetup"; this.tbtPageSetup.ToolTipText = "Ò³ÃæÉèÖÃ"; // // toolbarImages // this.toolbarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarImages.ImageStream"))); this.toolbarImages.TransparentColor = System.Drawing.Color.Transparent; this.toolbarImages.Images.SetKeyName(0, ""); this.toolbarImages.Images.SetKeyName(1, ""); this.toolbarImages.Images.SetKeyName(2, ""); this.toolbarImages.Images.SetKeyName(3, ""); this.toolbarImages.Images.SetKeyName(4, ""); this.toolbarImages.Images.SetKeyName(5, ""); this.toolbarImages.Images.SetKeyName(6, ""); this.toolbarImages.Images.SetKeyName(7, ""); this.toolbarImages.Images.SetKeyName(8, ""); this.toolbarImages.Images.SetKeyName(9, ""); this.toolbarImages.Images.SetKeyName(10, ""); // // printPreviewDialog2 // this.printPreviewDialog2.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog2.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog2.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog2.Enabled = true; this.printPreviewDialog2.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog2.Icon"))); this.printPreviewDialog2.Name = "printPreviewDialog2"; this.printPreviewDialog2.Visible = false; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(336, 4); this.numericUpDown1.Maximum = new decimal(new int[] { 8, 0, 0, 0 }); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(58, 21); this.numericUpDown1.TabIndex = 3; this.numericUpDown1.Value = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label1 // this.label1.Location = new System.Drawing.Point(288, 2); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(38, 26); this.label1.TabIndex = 4; this.label1.Text = "Ò³Âë"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // printDialog1 // this.printDialog1.AllowSomePages = true; this.printDialog1.ShowHelp = true; // // winButton1 // this.winButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.winButton1.Location = new System.Drawing.Point(420, 3); this.winButton1.Name = "winButton1"; this.winButton1.Size = new System.Drawing.Size(153, 26); this.winButton1.TabIndex = 7; this.winButton1.Text = "ҳüҳ½ÅÉèÖÃ"; this.winButton1.Click += new System.EventHandler(this.button2_Click); // // PrintPreviewForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(592, 366); this.Controls.Add(this.winButton1); this.Controls.Add(this.printPreviewControl1); this.Controls.Add(this.label1); this.Controls.Add(this.numericUpDown1); this.Controls.Add(this.toolBar1); this.Name = "PrintPreviewForm"; this.Text = "´òÓ¡Ô¤ÀÀ"; ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmPrintPreview)); this.ToolbarImages = new System.Windows.Forms.ImageList(this.components); this.Menu25 = new System.Windows.Forms.MenuItem(); this.Menu50 = new System.Windows.Forms.MenuItem(); this.Menu10 = new System.Windows.Forms.MenuItem(); this.Menu100 = new System.Windows.Forms.MenuItem(); this.ZoomMenu = new System.Windows.Forms.ContextMenu(); this.MenuAuto = new System.Windows.Forms.MenuItem(); this.Menu500 = new System.Windows.Forms.MenuItem(); this.Menu200 = new System.Windows.Forms.MenuItem(); this.Menu150 = new System.Windows.Forms.MenuItem(); this.Menu75 = new System.Windows.Forms.MenuItem(); this.PrintToolbar = new System.Windows.Forms.Panel(); this.PageRange = new System.Windows.Forms.TextBox(); this.toolBarMain = new System.Windows.Forms.ToolBar(); this.toolBarBtnActPrint = new System.Windows.Forms.ToolBarButton(); this.printerMenu = new System.Windows.Forms.ContextMenu(); this.toolBarBtnActZoomAuto = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnOnePage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnTwoPages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnThreePages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFourPages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSixPages = new System.Windows.Forms.ToolBarButton(); this.toolBarButton8 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFirstPage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnPrevPage = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonDummy = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnNextPage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnLastPage = new System.Windows.Forms.ToolBarButton(); this.toolBarButton13 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnScale = new System.Windows.Forms.ToolBarButton(); this.scaleMenu = new System.Windows.Forms.ContextMenu(); this.miScaleToPage = new System.Windows.Forms.MenuItem(); this.miOriginalScale = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.miDoubleScale = new System.Windows.Forms.MenuItem(); this.miHalveSpace = new System.Windows.Forms.MenuItem(); this.miIncreaseScale = new System.Windows.Forms.MenuItem(); this.miDecreaseScale = new System.Windows.Forms.MenuItem(); this.toolBarBtnOrientation = new System.Windows.Forms.ToolBarButton(); this.PreviewArea = new System.Windows.Forms.PrintPreviewControl(); this.PrintToolbar.SuspendLayout(); this.SuspendLayout(); // // ToolbarImages // this.ToolbarImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; this.ToolbarImages.ImageSize = new System.Drawing.Size(25, 25); this.ToolbarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ToolbarImages.ImageStream"))); this.ToolbarImages.TransparentColor = System.Drawing.Color.FromArgb(((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); // // Menu25 // this.Menu25.Index = 7; this.Menu25.Text = "25%"; this.Menu25.Click += new System.EventHandler(this.Menu25_Click); // // Menu50 // this.Menu50.Index = 6; this.Menu50.Text = "50%"; this.Menu50.Click += new System.EventHandler(this.Menu50_Click); // // Menu10 // this.Menu10.Index = 8; this.Menu10.Text = "10%"; this.Menu10.Click += new System.EventHandler(this.Menu10_Click); // // Menu100 // this.Menu100.Index = 4; this.Menu100.Text = "100%"; this.Menu100.Click += new System.EventHandler(this.Menu100_Click); // // ZoomMenu // this.ZoomMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.MenuAuto, this.Menu500, this.Menu200, this.Menu150, this.Menu100, this.Menu75, this.Menu50, this.Menu25, this.Menu10 }); // // MenuAuto // this.MenuAuto.Checked = true; this.MenuAuto.Index = 0; this.MenuAuto.Text = "Auto"; this.MenuAuto.Click += new System.EventHandler(this.MenuAuto_Click); // // Menu500 // this.Menu500.Index = 1; this.Menu500.Text = "500%"; this.Menu500.Click += new System.EventHandler(this.Menu500_Click); // // Menu200 // this.Menu200.Index = 2; this.Menu200.Text = "200%"; this.Menu200.Click += new System.EventHandler(this.Menu200_Click); // // Menu150 // this.Menu150.Index = 3; this.Menu150.Text = "150%"; this.Menu150.Click += new System.EventHandler(this.Menu150_Click); // // Menu75 // this.Menu75.Index = 5; this.Menu75.Text = "75%"; this.Menu75.Click += new System.EventHandler(this.Menu75_Click); // // PrintToolbar // this.PrintToolbar.Controls.AddRange(new System.Windows.Forms.Control[] { this.PageRange, this.toolBarMain }); this.PrintToolbar.Dock = System.Windows.Forms.DockStyle.Top; this.PrintToolbar.Name = "PrintToolbar"; this.PrintToolbar.Size = new System.Drawing.Size(640, 34); this.PrintToolbar.TabIndex = 6; // // PageRange // this.PageRange.BackColor = System.Drawing.SystemColors.Control; this.PageRange.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.PageRange.Enabled = false; this.PageRange.Location = new System.Drawing.Point(336, 8); this.PageRange.Name = "PageRange"; this.PageRange.Size = new System.Drawing.Size(24, 20); this.PageRange.TabIndex = 5; this.PageRange.Text = "1"; this.PageRange.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // toolBarMain // this.toolBarMain.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBarMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarBtnActPrint, this.toolBarBtnActZoomAuto, this.toolBarButton2, this.toolBarBtnOnePage, this.toolBarBtnTwoPages, this.toolBarBtnThreePages, this.toolBarBtnFourPages, this.toolBarBtnSixPages, this.toolBarButton8, this.toolBarBtnFirstPage, this.toolBarBtnPrevPage, this.toolBarButtonDummy, this.toolBarBtnNextPage, this.toolBarBtnLastPage, this.toolBarButton13, this.toolBarBtnScale, this.toolBarBtnOrientation }); this.toolBarMain.ButtonSize = new System.Drawing.Size(26, 26); this.toolBarMain.DropDownArrows = true; this.toolBarMain.ImageList = this.ToolbarImages; this.toolBarMain.Name = "toolBarMain"; this.toolBarMain.ShowToolTips = true; this.toolBarMain.Size = new System.Drawing.Size(640, 34); this.toolBarMain.TabIndex = 0; this.toolBarMain.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarMain_ButtonClick); // // toolBarBtnActPrint // this.toolBarBtnActPrint.DropDownMenu = this.printerMenu; this.toolBarBtnActPrint.ImageIndex = 0; this.toolBarBtnActPrint.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // toolBarBtnActZoomAuto // this.toolBarBtnActZoomAuto.DropDownMenu = this.ZoomMenu; this.toolBarBtnActZoomAuto.ImageIndex = 1; this.toolBarBtnActZoomAuto.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // toolBarButton2 // this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnOnePage // this.toolBarBtnOnePage.ImageIndex = 2; // // toolBarBtnTwoPages // this.toolBarBtnTwoPages.ImageIndex = 3; // // toolBarBtnThreePages // this.toolBarBtnThreePages.ImageIndex = 4; // // toolBarBtnFourPages // this.toolBarBtnFourPages.ImageIndex = 5; // // toolBarBtnSixPages // this.toolBarBtnSixPages.ImageIndex = 6; // // toolBarButton8 // this.toolBarButton8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnFirstPage // this.toolBarBtnFirstPage.ImageIndex = 7; // // toolBarBtnPrevPage // this.toolBarBtnPrevPage.ImageIndex = 8; // // toolBarButtonDummy // this.toolBarButtonDummy.Enabled = false; // // toolBarBtnNextPage // this.toolBarBtnNextPage.ImageIndex = 9; // // toolBarBtnLastPage // this.toolBarBtnLastPage.ImageIndex = 10; // // toolBarButton13 // this.toolBarButton13.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnScale // this.toolBarBtnScale.DropDownMenu = this.scaleMenu; this.toolBarBtnScale.ImageIndex = 13; this.toolBarBtnScale.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // scaleMenu // this.scaleMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miScaleToPage, this.miOriginalScale, this.menuItem1, this.miDoubleScale, this.miHalveSpace, this.miIncreaseScale, this.miDecreaseScale }); // // miScaleToPage // this.miScaleToPage.Index = 0; this.miScaleToPage.Text = "Fit to Page"; this.miScaleToPage.Click += new System.EventHandler(this.miScaleToPage_Click); // // miOriginalScale // this.miOriginalScale.Index = 1; this.miOriginalScale.Text = "Original Scale"; this.miOriginalScale.Click += new System.EventHandler(this.miOriginalScale_Click); // // menuItem1 // this.menuItem1.Index = 2; this.menuItem1.Text = "-"; // // miDoubleScale // this.miDoubleScale.Index = 3; this.miDoubleScale.Text = "Double Scale"; this.miDoubleScale.Click += new System.EventHandler(this.miDoubleScale_Click); // // miHalveSpace // this.miHalveSpace.Index = 4; this.miHalveSpace.Text = "Halve Scale"; this.miHalveSpace.Click += new System.EventHandler(this.miHalveSpace_Click); // // miIncreaseScale // this.miIncreaseScale.Index = 5; this.miIncreaseScale.Text = "Increase Scale"; this.miIncreaseScale.Click += new System.EventHandler(this.miIncreaseScale_Click); // // miDecreaseScale // this.miDecreaseScale.Index = 6; this.miDecreaseScale.Text = "Decrease Scale"; this.miDecreaseScale.Click += new System.EventHandler(this.miDecreaseScale_Click); // // toolBarBtnOrientation // this.toolBarBtnOrientation.ImageIndex = 12; // // PreviewArea // this.PreviewArea.AutoZoom = false; this.PreviewArea.Dock = System.Windows.Forms.DockStyle.Fill; this.PreviewArea.Location = new System.Drawing.Point(0, 34); this.PreviewArea.Name = "PreviewArea"; this.PreviewArea.Size = new System.Drawing.Size(640, 388); this.PreviewArea.TabIndex = 12; this.PreviewArea.Zoom = 1; // // FrmPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(640, 422); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.PreviewArea, this.PrintToolbar }); this.MinimumSize = new System.Drawing.Size(584, 392); this.Name = "FrmPrintPreview"; this.Text = "1"; this.Load += new System.EventHandler(this.FrmPrintPreview_Load); this.Closed += new System.EventHandler(this.FrmPrintPreview_Closed); this.PrintToolbar.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmPrintPreviewDialogPF)); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.m_lblSpliter = new System.Windows.Forms.Label(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.m_ctmClear = new System.Windows.Forms.ContextMenu(); this.m_mniClear = new System.Windows.Forms.MenuItem(); this.m_nudView = new System.Windows.Forms.NumericUpDown(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.m_tlbPrint = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarButton1 = new System.Windows.Forms.ToolBarButton(); this.m_tlbContinue = new System.Windows.Forms.ToolBarButton(); this.m_ctmContinuePrint = new System.Windows.Forms.ContextMenu(); this.m_mniLine = new System.Windows.Forms.MenuItem(); this.m_mniArea = new System.Windows.Forms.MenuItem(); this.toolBarButton4 = new System.Windows.Forms.ToolBarButton(); this.m_imlToolbar = new System.Windows.Forms.ImageList(this.components); this.m_pnlPrintPreview = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); this.m_rdbAll = new System.Windows.Forms.RadioButton(); this.m_rdbSpecify = new System.Windows.Forms.RadioButton(); this.label2 = new System.Windows.Forms.Label(); this.m_nudEnd = new System.Windows.Forms.NumericUpDown(); this.m_nudFrom = new System.Windows.Forms.NumericUpDown(); this.label3 = new System.Windows.Forms.Label(); this.m_ttpPrompt = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.m_nudView)).BeginInit(); this.m_pnlPrintPreview.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.m_nudEnd)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.m_nudFrom)).BeginInit(); this.SuspendLayout(); // // printDocument1 // this.printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_BeginPrint); this.printDocument1.EndPrint += new System.Drawing.Printing.PrintEventHandler(this.printDocument1_EndPrint); this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // m_lblSpliter // this.m_lblSpliter.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); this.m_lblSpliter.BackColor = System.Drawing.Color.Red; this.m_lblSpliter.Location = new System.Drawing.Point(0, 300); this.m_lblSpliter.Name = "m_lblSpliter"; this.m_lblSpliter.Size = new System.Drawing.Size(2888, 5); this.m_lblSpliter.TabIndex = 6; this.m_ttpPrompt.SetToolTip(this.m_lblSpliter, "按住鼠标左键可以进行上下拖动,分隔线下方为您需要续打的内容"); this.m_lblSpliter.Visible = false; this.m_lblSpliter.MouseEnter += new System.EventHandler(this.m_lblSpliter_MouseEnter); this.m_lblSpliter.MouseMove += new System.Windows.Forms.MouseEventHandler(this.m_lblSpliter_MouseMove); this.m_lblSpliter.MouseDown += new System.Windows.Forms.MouseEventHandler(this.m_lblSpliter_MouseDown); // // printPreviewControl1 // this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.ContextMenu = this.m_ctmClear; this.printPreviewControl1.Document = this.printDocument1; this.printPreviewControl1.Location = new System.Drawing.Point(0, 0); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(1008, 1150); this.printPreviewControl1.TabIndex = 0; this.m_ttpPrompt.SetToolTip(this.printPreviewControl1, "右键单击可查看您可以与此表单进行的交互"); this.printPreviewControl1.Zoom = 1; this.printPreviewControl1.Paint += new System.Windows.Forms.PaintEventHandler(this.printPreviewControl1_Paint); this.printPreviewControl1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl1_MouseUp); this.printPreviewControl1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl1_MouseMove); this.printPreviewControl1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl1_MouseDown); // // m_ctmClear // this.m_ctmClear.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.m_mniClear }); // // m_mniClear // this.m_mniClear.Index = 0; this.m_mniClear.Text = "清空已选择区域"; this.m_mniClear.Click += new System.EventHandler(this.m_mniClear_Click); // // m_nudView // this.m_nudView.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.m_nudView.Location = new System.Drawing.Point(744, 4); this.m_nudView.Minimum = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudView.Name = "m_nudView"; this.m_nudView.Size = new System.Drawing.Size(48, 21); this.m_nudView.TabIndex = 7; this.m_nudView.Value = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudView.ValueChanged += new System.EventHandler(this.m_nudView_ValueChanged); // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.m_tlbPrint, this.toolBarButton2, this.toolBarButton1, this.m_tlbContinue, this.toolBarButton4 }); this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.m_imlToolbar; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(792, 28); this.toolBar1.TabIndex = 2; this.toolBar1.TextAlign = System.Windows.Forms.ToolBarTextAlign.Right; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // m_tlbPrint // this.m_tlbPrint.ImageIndex = 0; this.m_tlbPrint.Tag = "打印"; this.m_tlbPrint.Text = "打印"; this.m_tlbPrint.ToolTipText = "打印"; // // toolBarButton2 // this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarButton1 // this.toolBarButton1.ImageIndex = 1; this.toolBarButton1.Text = "打印机设置"; // // m_tlbContinue // this.m_tlbContinue.DropDownMenu = this.m_ctmContinuePrint; this.m_tlbContinue.ImageIndex = 2; this.m_tlbContinue.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.m_tlbContinue.Text = "续打"; // // m_ctmContinuePrint // this.m_ctmContinuePrint.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.m_mniLine, this.m_mniArea }); // // m_mniLine // this.m_mniLine.Index = 0; this.m_mniLine.Text = "分隔线"; this.m_mniLine.Click += new System.EventHandler(this.m_mniItem_Click); // // m_mniArea // this.m_mniArea.Index = 1; this.m_mniArea.Text = "区域选择"; this.m_mniArea.Click += new System.EventHandler(this.m_mniItem_Click); // // toolBarButton4 // this.toolBarButton4.ImageIndex = 3; this.toolBarButton4.Text = "关闭"; // // m_imlToolbar // this.m_imlToolbar.ImageSize = new System.Drawing.Size(16, 16); this.m_imlToolbar.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("m_imlToolbar.ImageStream"))); this.m_imlToolbar.TransparentColor = System.Drawing.Color.Transparent; // // m_pnlPrintPreview // this.m_pnlPrintPreview.AutoScroll = true; this.m_pnlPrintPreview.Controls.Add(this.m_lblSpliter); this.m_pnlPrintPreview.Controls.Add(this.printPreviewControl1); this.m_pnlPrintPreview.Dock = System.Windows.Forms.DockStyle.Fill; this.m_pnlPrintPreview.Location = new System.Drawing.Point(0, 28); this.m_pnlPrintPreview.Name = "m_pnlPrintPreview"; this.m_pnlPrintPreview.Size = new System.Drawing.Size(792, 545); this.m_pnlPrintPreview.TabIndex = 9; // // label1 // this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(696, 8); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(48, 17); this.label1.TabIndex = 11; this.label1.Text = "浏览页:"; // // m_rdbAll // this.m_rdbAll.Checked = true; this.m_rdbAll.Location = new System.Drawing.Point(360, 2); this.m_rdbAll.Name = "m_rdbAll"; this.m_rdbAll.Size = new System.Drawing.Size(48, 24); this.m_rdbAll.TabIndex = 13; this.m_rdbAll.TabStop = true; this.m_rdbAll.Text = "全部"; // // m_rdbSpecify // this.m_rdbSpecify.Location = new System.Drawing.Point(416, 2); this.m_rdbSpecify.Name = "m_rdbSpecify"; this.m_rdbSpecify.Size = new System.Drawing.Size(96, 24); this.m_rdbSpecify.TabIndex = 12; this.m_rdbSpecify.Text = "指定页 从:"; this.m_rdbSpecify.CheckedChanged += new System.EventHandler(this.m_rdbSpecify_CheckedChanged); // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(296, 7); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(60, 17); this.label2.TabIndex = 14; this.label2.Text = "打印范围:"; // // m_nudEnd // this.m_nudEnd.Enabled = false; this.m_nudEnd.Location = new System.Drawing.Point(600, 4); this.m_nudEnd.Minimum = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudEnd.Name = "m_nudEnd"; this.m_nudEnd.Size = new System.Drawing.Size(48, 21); this.m_nudEnd.TabIndex = 15; this.m_nudEnd.Value = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudEnd.ValueChanged += new System.EventHandler(this.m_nudEnd_ValueChanged); // // m_nudFrom // this.m_nudFrom.Enabled = false; this.m_nudFrom.Location = new System.Drawing.Point(512, 4); this.m_nudFrom.Minimum = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudFrom.Name = "m_nudFrom"; this.m_nudFrom.Size = new System.Drawing.Size(48, 21); this.m_nudFrom.TabIndex = 16; this.m_nudFrom.Value = new System.Decimal(new int[] { 1, 0, 0, 0 }); this.m_nudFrom.ValueChanged += new System.EventHandler(this.m_nudFrom_ValueChanged); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(568, 6); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(23, 17); this.label3.TabIndex = 17; this.label3.Text = "到:"; // // frmPrintPreviewDialogPF // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(792, 573); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.m_nudFrom); this.Controls.Add(this.m_nudEnd); this.Controls.Add(this.m_rdbAll); this.Controls.Add(this.m_rdbSpecify); this.Controls.Add(this.m_pnlPrintPreview); this.Controls.Add(this.m_nudView); this.Controls.Add(this.toolBar1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "frmPrintPreviewDialogPF"; this.Text = "打印预览"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; ((System.ComponentModel.ISupportInitialize)(this.m_nudView)).EndInit(); this.m_pnlPrintPreview.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.m_nudEnd)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.m_nudFrom)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReportLikeCrystal)); this.butClose = new OpenDental.UI.Button(); this.butPrint = new OpenDental.UI.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new OpenDental.UI.Button(); this.labelTotPages = new System.Windows.Forms.Label(); this.butBack = new OpenDental.UI.Button(); this.butFwd = new OpenDental.UI.Button(); this.butSetup = new OpenDental.UI.Button(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.setupDialog2 = new System.Windows.Forms.PageSetupDialog(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0,0); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.Location = new System.Drawing.Point(239,2); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75,23); this.butClose.TabIndex = 1; this.butClose.Text = "&Close"; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0,0); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Location = new System.Drawing.Point(1,2); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75,23); this.butPrint.TabIndex = 2; this.butPrint.Text = "&Print"; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.labelTotPages); this.panel1.Controls.Add(this.butBack); this.panel1.Controls.Add(this.butFwd); this.panel1.Controls.Add(this.butSetup); this.panel1.Controls.Add(this.butPrint); this.panel1.Controls.Add(this.butClose); this.panel1.Location = new System.Drawing.Point(-1,178); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(831,35); this.panel1.TabIndex = 4; this.panel1.Visible = false; // // button1 // this.button1.AdjustImageLocation = new System.Drawing.Point(0,0); this.button1.Autosize = true; this.button1.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.button1.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.button1.CornerRadius = 4F; this.button1.Location = new System.Drawing.Point(501,8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75,23); this.button1.TabIndex = 4; this.button1.Text = "Test"; this.button1.Visible = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // labelTotPages // this.labelTotPages.Font = new System.Drawing.Font("Microsoft Sans Serif",9F,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.labelTotPages.Location = new System.Drawing.Point(137,4); this.labelTotPages.Name = "labelTotPages"; this.labelTotPages.Size = new System.Drawing.Size(54,18); this.labelTotPages.TabIndex = 19; this.labelTotPages.Text = "1 / 2"; this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // butBack // this.butBack.AdjustImageLocation = new System.Drawing.Point(0,0); this.butBack.Autosize = true; this.butBack.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butBack.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butBack.CornerRadius = 4F; this.butBack.Image = global::OpenDental.Properties.Resources.Left; this.butBack.Location = new System.Drawing.Point(115,1); this.butBack.Name = "butBack"; this.butBack.Size = new System.Drawing.Size(18,23); this.butBack.TabIndex = 20; // // butFwd // this.butFwd.AdjustImageLocation = new System.Drawing.Point(1,0); this.butFwd.Autosize = true; this.butFwd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFwd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFwd.CornerRadius = 4F; this.butFwd.Image = global::OpenDental.Properties.Resources.Right; this.butFwd.Location = new System.Drawing.Point(193,1); this.butFwd.Name = "butFwd"; this.butFwd.Size = new System.Drawing.Size(18,23); this.butFwd.TabIndex = 21; // // butSetup // this.butSetup.AdjustImageLocation = new System.Drawing.Point(0,0); this.butSetup.Autosize = true; this.butSetup.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSetup.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSetup.CornerRadius = 4F; this.butSetup.Location = new System.Drawing.Point(590,2); this.butSetup.Name = "butSetup"; this.butSetup.Size = new System.Drawing.Size(75,23); this.butSetup.TabIndex = 3; this.butSetup.Text = "&Setup"; this.butSetup.Visible = false; this.butSetup.Click += new System.EventHandler(this.butSetup_Click); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0,0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(831,25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0,""); this.imageListMain.Images.SetKeyName(1,""); this.imageListMain.Images.SetKeyName(2,""); this.imageListMain.Images.SetKeyName(3,""); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl2.Location = new System.Drawing.Point(0,0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(831,570); this.printPreviewControl2.TabIndex = 6; // // FormReportLikeCrystal // this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.ClientSize = new System.Drawing.Size(831,570); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.panel1); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormReportOld2"; this.ShowInTaskbar = false; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormReport_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public override void PrintPreviewControlPaint (PaintEventArgs pe, PrintPreviewControl preview, Size page_size) { int padding = 8; PreviewPageInfo[] pis = preview.page_infos; if (pis == null) return; int page_x, page_y; int width = page_size.Width * preview.Columns + padding * (preview.Columns - 1) + 2 * padding; int height = page_size.Height * (preview.Rows + 1) + padding * preview.Rows + 2 * padding; Rectangle viewport = preview.ViewPort; pe.Graphics.Clip = new Region (viewport); /* center things if we can */ int off_x = viewport.Width / 2 - width / 2; if (off_x < 0) off_x = 0; int off_y = viewport.Height / 2 - height / 2; if (off_y < 0) off_y = 0; page_y = off_y + padding - preview.vbar_value; if (preview.StartPage > 0) { int p = preview.StartPage - 1; for (int py = 0; py < preview.Rows + 1; py ++) { page_x = off_x + padding - preview.hbar_value; for (int px = 0; px < preview.Columns; px ++) { if (p >= pis.Length) continue; Image image = preview.image_cache[p]; if (image == null) image = pis[p].Image; Rectangle dest = new Rectangle (new Point (page_x, page_y), page_size); pe.Graphics.DrawImage (image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel); page_x += padding + page_size.Width; p++; } page_y += padding + page_size.Height; } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SimpleEditorForm)); this.textBoxEdit = new System.Windows.Forms.TextBox(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.miFile = new System.Windows.Forms.MenuItem(); this.miFileNew = new System.Windows.Forms.MenuItem(); this.miFileOpen = new System.Windows.Forms.MenuItem(); this.miFileSave = new System.Windows.Forms.MenuItem(); this.miFileSaveAs = new System.Windows.Forms.MenuItem(); this.dlgOpenFile = new System.Windows.Forms.OpenFileDialog(); this.dlgSaveFile = new System.Windows.Forms.SaveFileDialog(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.miFilePrint = new System.Windows.Forms.MenuItem(); this.miFilePrintPreview = new System.Windows.Forms.MenuItem(); this.miFilePageSetup = new System.Windows.Forms.MenuItem(); this.miFileExit = new System.Windows.Forms.MenuItem(); this.printDocument = new System.Drawing.Printing.PrintDocument(); this.dlgPageSetup = new System.Windows.Forms.PageSetupDialog(); this.dlgPrint = new System.Windows.Forms.PrintDialog(); this.dlgPrintPreview = new System.Windows.Forms.PrintPreviewDialog(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.SuspendLayout(); // // textBoxEdit // this.textBoxEdit.AcceptsReturn = true; this.textBoxEdit.AcceptsTab = true; this.textBoxEdit.Dock = System.Windows.Forms.DockStyle.Fill; this.textBoxEdit.Multiline = true; this.textBoxEdit.Name = "textBoxEdit"; this.textBoxEdit.ScrollBars = System.Windows.Forms.ScrollBars.Both; this.textBoxEdit.Size = new System.Drawing.Size(568, 273); this.textBoxEdit.TabIndex = 0; this.textBoxEdit.Text = ""; // // mainMenu1 // this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miFile }); // // miFile // this.miFile.Index = 0; this.miFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miFileNew, this.miFileOpen, this.miFileSave, this.miFileSaveAs, this.menuItem1, this.miFilePrint, this.miFilePrintPreview, this.miFilePageSetup, this.miFileExit }); this.miFile.Text = "&File"; // // miFileNew // this.miFileNew.Index = 0; this.miFileNew.Text = "&New"; this.miFileNew.Click += new System.EventHandler(this.miFileNew_Click); // // miFileOpen // this.miFileOpen.Index = 1; this.miFileOpen.Text = "&Open..."; this.miFileOpen.Click += new System.EventHandler(this.miFileOpen_Click); // // miFileSave // this.miFileSave.Index = 2; this.miFileSave.Text = "&Save"; this.miFileSave.Click += new System.EventHandler(this.miFileSave_Click); // // miFileSaveAs // this.miFileSaveAs.Index = 3; this.miFileSaveAs.Text = "Save &As..."; this.miFileSaveAs.Click += new System.EventHandler(this.miFileSaveAs_Click); // // dlgOpenFile // this.dlgOpenFile.Filter = "Text Documents (*.txt)|*.txt|Wrox Documents (*.wroxtext)|*.wroxtext|All Files|*.*" + ""; this.dlgOpenFile.FilterIndex = 2; // // dlgSaveFile // this.dlgSaveFile.FileName = "doc1"; this.dlgSaveFile.Filter = "Text Document (*.txt)|*.txt|Wrox Documents (*.wroxtext)|*.wroxtext"; this.dlgSaveFile.FilterIndex = 2; // // menuItem1 // this.menuItem1.Index = 4; this.menuItem1.Text = "-"; // // miFilePrint // this.miFilePrint.Index = 5; this.miFilePrint.Text = "&Print"; this.miFilePrint.Click += new System.EventHandler(this.miFilePrint_Click); // // miFilePrintPreview // this.miFilePrintPreview.Index = 6; this.miFilePrintPreview.Text = "Print Pre&view"; this.miFilePrintPreview.Click += new System.EventHandler(this.miFilePrintPreview_Click); // // miFilePageSetup // this.miFilePageSetup.Index = 7; this.miFilePageSetup.Text = "Page Set&up"; this.miFilePageSetup.Click += new System.EventHandler(this.miFilePageSetup_Click); // // miFileExit // this.miFileExit.Index = 8; this.miFileExit.Text = "E&xit"; // // printDocument // this.printDocument.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.OnBeginPrint); this.printDocument.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.OnPrintPage); // // dlgPageSetup // this.dlgPageSetup.Document = this.printDocument; // // dlgPrint // this.dlgPrint.Document = this.printDocument; // // dlgPrintPreview // this.dlgPrintPreview.AutoScrollMargin = new System.Drawing.Size(0, 0); this.dlgPrintPreview.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.dlgPrintPreview.ClientSize = new System.Drawing.Size(400, 300); this.dlgPrintPreview.Document = this.printDocument; this.dlgPrintPreview.Enabled = true; this.dlgPrintPreview.Icon = ((System.Drawing.Icon)(resources.GetObject("dlgPrintPreview.Icon"))); this.dlgPrintPreview.Location = new System.Drawing.Point(17, 54); this.dlgPrintPreview.MaximumSize = new System.Drawing.Size(0, 0); this.dlgPrintPreview.Name = "dlgPrintPreview"; this.dlgPrintPreview.Opacity = 1; this.dlgPrintPreview.TransparencyKey = System.Drawing.Color.Empty; this.dlgPrintPreview.Visible = false; // // printPreviewControl1 // this.printPreviewControl1.Document = this.printDocument; this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(512, 248); this.printPreviewControl1.TabIndex = 1; this.printPreviewControl1.Visible = false; this.printPreviewControl1.Zoom = 0.20359281437125748; // // SimpleEditorForm // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(568, 273); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.printPreviewControl1, this.textBoxEdit }); this.Menu = this.mainMenu1; this.Name = "SimpleEditorForm"; this.Text = "Simple Editor"; this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.prPreview = new System.Windows.Forms.PrintPreviewControl(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.tbZoom = new System.Windows.Forms.ToolBarButton(); this.ZoomSizes = new System.Windows.Forms.ContextMenu(); this.pop150zoom = new System.Windows.Forms.MenuItem(); this.pop100zoom = new System.Windows.Forms.MenuItem(); this.pop75zoom = new System.Windows.Forms.MenuItem(); this.tbPrint = new System.Windows.Forms.ToolBarButton(); this.tbClose = new System.Windows.Forms.ToolBarButton(); this.tbPageBack = new System.Windows.Forms.ToolBarButton(); this.tbPageNext = new System.Windows.Forms.ToolBarButton(); this.lblPageNum = new System.Windows.Forms.Label(); this.SuspendLayout(); // // prPreview // this.prPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.prPreview.AutoZoom = false; this.prPreview.Location = new System.Drawing.Point(32, 72); this.prPreview.Name = "prPreview"; this.prPreview.Size = new System.Drawing.Size(767, 384); this.prPreview.TabIndex = 0; this.prPreview.Zoom = 1D; this.prPreview.StartPageChanged += new System.EventHandler(this.prPreview_StartPageChanged); // // toolBar1 // this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbZoom, this.tbPrint, this.tbClose, this.tbPageBack, this.tbPageNext}); this.toolBar1.DropDownArrows = true; this.toolBar1.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(824, 56); this.toolBar1.TabIndex = 1; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // tbZoom // this.tbZoom.DropDownMenu = this.ZoomSizes; this.tbZoom.Name = "tbZoom"; this.tbZoom.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; this.tbZoom.Text = "Zoom"; // // ZoomSizes // this.ZoomSizes.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.pop150zoom, this.pop100zoom, this.pop75zoom}); // // pop150zoom // this.pop150zoom.Index = 0; this.pop150zoom.Text = "150%"; this.pop150zoom.Click += new System.EventHandler(this.pop150zoom_Click); // // pop100zoom // this.pop100zoom.Index = 1; this.pop100zoom.Text = "100%"; this.pop100zoom.Click += new System.EventHandler(this.pop100zoom_Click); // // pop75zoom // this.pop75zoom.Index = 2; this.pop75zoom.Text = "75%"; this.pop75zoom.Click += new System.EventHandler(this.pop75zoom_Click); // // tbPrint // this.tbPrint.Name = "tbPrint"; this.tbPrint.Text = "Print"; // // tbClose // this.tbClose.Name = "tbClose"; this.tbClose.Text = "Close"; // // tbPageBack // this.tbPageBack.Name = "tbPageBack"; this.tbPageBack.Text = "<<"; // // tbPageNext // this.tbPageNext.Name = "tbPageNext"; this.tbPageNext.Text = ">>"; // // lblPageNum // this.lblPageNum.Font = new System.Drawing.Font("Arial", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.lblPageNum.Location = new System.Drawing.Point(520, 8); this.lblPageNum.Name = "lblPageNum"; this.lblPageNum.Size = new System.Drawing.Size(96, 32); this.lblPageNum.TabIndex = 2; this.lblPageNum.Text = "Page:1"; // // FrmPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(824, 450); this.Controls.Add(this.prPreview); this.Controls.Add(this.lblPageNum); this.Controls.Add(this.toolBar1); this.Name = "FrmPrintPreview"; this.Text = "frmPrintPreview"; this.ResumeLayout(false); this.PerformLayout(); }
public PrintPreviewControlAccessibleObject(PrintPreviewControl owner) : base(owner) { _owningPrintPreviewControl = owner; }
private void Form1_Load(object sender, System.EventArgs e) { this.pd = new System.Drawing.Printing.PrintDocument(); this.ppc = new PrintPreviewControl(); this.ppd = new PrintPreviewDialog(); this.printDialog1 = new PrintDialog(); this.pd.BeginPrint += new System.Drawing.Printing.PrintEventHandler(pd_BeginPrint); this.pd.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(pd_PrintPage); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.panel1 = new System.Windows.Forms.Panel(); this.label1 = new System.Windows.Forms.Label(); this.btnEsc = new PinkieControls.ButtonXP(); this.btnPrint = new PinkieControls.ButtonXP(); this.btnMath = new PinkieControls.ButtonXP(); this.endDate = new System.Windows.Forms.DateTimePicker(); this.startDate = new System.Windows.Forms.DateTimePicker(); this.panel2 = new System.Windows.Forms.Panel(); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.printDocument1 = new System.Drawing.Printing.PrintDocument(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.btnEsc); this.panel1.Controls.Add(this.btnPrint); this.panel1.Controls.Add(this.btnMath); this.panel1.Controls.Add(this.endDate); this.panel1.Controls.Add(this.startDate); this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(936, 48); this.panel1.TabIndex = 0; // // label1 // this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.label1.ForeColor = System.Drawing.SystemColors.Desktop; this.label1.Location = new System.Drawing.Point(168, 13); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 23); this.label1.TabIndex = 6; this.label1.Text = "至"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // btnEsc // this.btnEsc.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnEsc.DefaultScheme = true; this.btnEsc.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnEsc.Hint = ""; this.btnEsc.Location = new System.Drawing.Point(696, 8); this.btnEsc.Name = "btnEsc"; this.btnEsc.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnEsc.Size = new System.Drawing.Size(112, 32); this.btnEsc.TabIndex = 5; this.btnEsc.Text = "退出(ESC)"; this.btnEsc.Click += new System.EventHandler(this.btnEsc_Click); // // btnPrint // this.btnPrint.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnPrint.DefaultScheme = true; this.btnPrint.DialogResult = System.Windows.Forms.DialogResult.None; this.btnPrint.Hint = ""; this.btnPrint.Location = new System.Drawing.Point(536, 8); this.btnPrint.Name = "btnPrint"; this.btnPrint.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnPrint.Size = new System.Drawing.Size(112, 32); this.btnPrint.TabIndex = 4; this.btnPrint.Text = "打印(&P)"; this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); // // btnMath // this.btnMath.BackColor = System.Drawing.Color.FromArgb(((System.Byte)(0)), ((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); this.btnMath.DefaultScheme = true; this.btnMath.DialogResult = System.Windows.Forms.DialogResult.None; this.btnMath.Hint = ""; this.btnMath.Location = new System.Drawing.Point(376, 8); this.btnMath.Name = "btnMath"; this.btnMath.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.btnMath.Size = new System.Drawing.Size(112, 32); this.btnMath.TabIndex = 3; this.btnMath.Text = "统计(&S)"; this.btnMath.Click += new System.EventHandler(this.btnMath_Click); // // endDate // this.endDate.Location = new System.Drawing.Point(232, 13); this.endDate.Name = "endDate"; this.endDate.Size = new System.Drawing.Size(120, 23); this.endDate.TabIndex = 1; // // startDate // this.startDate.Location = new System.Drawing.Point(48, 13); this.startDate.Name = "startDate"; this.startDate.Size = new System.Drawing.Size(120, 23); this.startDate.TabIndex = 0; // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel2.Controls.Add(this.printPreviewControl1); this.panel2.Location = new System.Drawing.Point(0, 56); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(936, 408); this.panel2.TabIndex = 1; // // printPreviewControl1 // this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl1.Document = this.printDocument1; this.printPreviewControl1.Location = new System.Drawing.Point(0, 0); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(934, 406); this.printPreviewControl1.TabIndex = 0; this.printPreviewControl1.Zoom = 1; // // printDocument1 // this.printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.printDocument1_PrintPage); // // frmGovReport // this.AutoScaleBaseSize = new System.Drawing.Size(7, 16); this.CancelButton = this.btnEsc; this.ClientSize = new System.Drawing.Size(936, 469); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.Name = "frmGovReport"; this.Text = "公费统计"; this.Load += new System.EventHandler(this.frmGovReport_Load); this.panel1.ResumeLayout(false); this.panel2.ResumeLayout(false); this.ResumeLayout(false); }
public PrintPreviewControlProvider(SWF.PrintPreviewControl printPreviewControl) : base(printPreviewControl) { this.printPreviewControl = printPreviewControl; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormPrntScrn)); this.label1 = new System.Windows.Forms.Label(); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.printDialog2 = new System.Windows.Forms.PrintDialog(); this.butCancel = new OpenDental.UI.Button(); this.saveFileDialog2 = new System.Windows.Forms.SaveFileDialog(); this.textMouseX = new System.Windows.Forms.TextBox(); this.textMouseY = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.butPrint = new OpenDental.UI.Button(); this.butZoomIn = new OpenDental.UI.Button(); this.butZoomOut = new OpenDental.UI.Button(); this.butExport = new OpenDental.UI.Button(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(190, 100); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(416, 23); this.label1.TabIndex = 0; this.label1.Text = "Once this is functioning, you can preview the image here before printing"; // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(0, 0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842, 538); this.printPreviewControl2.TabIndex = 1; this.printPreviewControl2.Zoom = 1; this.printPreviewControl2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseUp); this.printPreviewControl2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseMove); this.printPreviewControl2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseDown); // // pd2 // this.pd2.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.pd2_PrintPage); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butCancel.Location = new System.Drawing.Point(884, 759); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75, 26); this.butCancel.TabIndex = 4; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // textMouseX // this.textMouseX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textMouseX.Location = new System.Drawing.Point(274, 763); this.textMouseX.Name = "textMouseX"; this.textMouseX.Size = new System.Drawing.Size(56, 20); this.textMouseX.TabIndex = 7; this.textMouseX.Text = ""; this.textMouseX.Visible = false; // // textMouseY // this.textMouseY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textMouseY.Location = new System.Drawing.Point(394, 763); this.textMouseY.Name = "textMouseY"; this.textMouseY.Size = new System.Drawing.Size(56, 20); this.textMouseY.TabIndex = 8; this.textMouseY.Text = ""; this.textMouseY.Visible = false; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label2.Location = new System.Drawing.Point(209, 764); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(63, 17); this.label2.TabIndex = 11; this.label2.Text = "Mouse X"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label2.Visible = false; // // label3 // this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label3.Location = new System.Drawing.Point(334, 763); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(56, 20); this.label3.TabIndex = 12; this.label3.Text = "MouseY"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label3.Visible = false; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.Image = ((System.Drawing.Image)(resources.GetObject("butPrint.Image"))); this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(678, 759); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75, 26); this.butPrint.TabIndex = 13; this.butPrint.Text = "&Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // butZoomIn // this.butZoomIn.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butZoomIn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butZoomIn.Autosize = true; this.butZoomIn.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomIn.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomIn.Image = ((System.Drawing.Image)(resources.GetObject("butZoomIn.Image"))); this.butZoomIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomIn.Location = new System.Drawing.Point(502, 759); this.butZoomIn.Name = "butZoomIn"; this.butZoomIn.Size = new System.Drawing.Size(77, 26); this.butZoomIn.TabIndex = 14; this.butZoomIn.Text = "&Zoom +"; this.butZoomIn.Click += new System.EventHandler(this.butZoomIn_Click); // // butZoomOut // this.butZoomOut.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butZoomOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butZoomOut.Autosize = true; this.butZoomOut.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomOut.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomOut.Image = ((System.Drawing.Image)(resources.GetObject("butZoomOut.Image"))); this.butZoomOut.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomOut.Location = new System.Drawing.Point(591, 759); this.butZoomOut.Name = "butZoomOut"; this.butZoomOut.Size = new System.Drawing.Size(75, 26); this.butZoomOut.TabIndex = 15; this.butZoomOut.Text = "Zoom -"; this.butZoomOut.Click += new System.EventHandler(this.butZoomOut_Click); // // butExport // this.butExport.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butExport.Autosize = true; this.butExport.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butExport.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butExport.Image = ((System.Drawing.Image)(resources.GetObject("butExport.Image"))); this.butExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butExport.Location = new System.Drawing.Point(765, 759); this.butExport.Name = "butExport"; this.butExport.Size = new System.Drawing.Size(75, 26); this.butExport.TabIndex = 16; this.butExport.Text = "&Export"; this.butExport.Click += new System.EventHandler(this.butExport_Click); // // FormPrntScrn // this.AcceptButton = this.butPrint; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.butCancel; this.ClientSize = new System.Drawing.Size(976, 792); this.Controls.Add(this.butExport); this.Controls.Add(this.butZoomOut); this.Controls.Add(this.butZoomIn); this.Controls.Add(this.butPrint); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.textMouseY); this.Controls.Add(this.textMouseX); this.Controls.Add(this.butCancel); this.Controls.Add(this.printPreviewControl2); this.Controls.Add(this.label1); this.Cursor = System.Windows.Forms.Cursors.Default; this.Name = "FormPrntScrn"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Prnt Scrn Tool"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormPrntScrn_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormPrntScrn_Layout); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormReportLikeCrystal)); this.butClose = new OpenDental.UI.Button(); this.butPrint = new OpenDental.UI.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.button1 = new OpenDental.UI.Button(); this.labelTotPages = new System.Windows.Forms.Label(); this.butBack = new OpenDental.UI.Button(); this.butFwd = new OpenDental.UI.Button(); this.butSetup = new OpenDental.UI.Button(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.setupDialog2 = new System.Windows.Forms.PageSetupDialog(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.panel1.SuspendLayout(); this.SuspendLayout(); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.Location = new System.Drawing.Point(239, 2); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75, 23); this.butClose.TabIndex = 1; this.butClose.Text = "&Close"; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Location = new System.Drawing.Point(1, 2); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75, 23); this.butPrint.TabIndex = 2; this.butPrint.Text = "&Print"; // // panel1 // this.panel1.Controls.Add(this.button1); this.panel1.Controls.Add(this.labelTotPages); this.panel1.Controls.Add(this.butBack); this.panel1.Controls.Add(this.butFwd); this.panel1.Controls.Add(this.butSetup); this.panel1.Controls.Add(this.butPrint); this.panel1.Controls.Add(this.butClose); this.panel1.Location = new System.Drawing.Point(-1, 178); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(831, 35); this.panel1.TabIndex = 4; this.panel1.Visible = false; // // button1 // this.button1.AdjustImageLocation = new System.Drawing.Point(0, 0); this.button1.Autosize = true; this.button1.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.button1.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.button1.CornerRadius = 4F; this.button1.Location = new System.Drawing.Point(501, 8); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(75, 23); this.button1.TabIndex = 4; this.button1.Text = "Test"; this.button1.Visible = false; this.button1.Click += new System.EventHandler(this.button1_Click); // // labelTotPages // this.labelTotPages.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelTotPages.Location = new System.Drawing.Point(137, 4); this.labelTotPages.Name = "labelTotPages"; this.labelTotPages.Size = new System.Drawing.Size(54, 18); this.labelTotPages.TabIndex = 19; this.labelTotPages.Text = "1 / 2"; this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // butBack // this.butBack.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butBack.Autosize = true; this.butBack.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butBack.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butBack.CornerRadius = 4F; this.butBack.Image = global::OpenDental.Properties.Resources.Left; this.butBack.Location = new System.Drawing.Point(115, 1); this.butBack.Name = "butBack"; this.butBack.Size = new System.Drawing.Size(18, 23); this.butBack.TabIndex = 20; // // butFwd // this.butFwd.AdjustImageLocation = new System.Drawing.Point(1, 0); this.butFwd.Autosize = true; this.butFwd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFwd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFwd.CornerRadius = 4F; this.butFwd.Image = global::OpenDental.Properties.Resources.Right; this.butFwd.Location = new System.Drawing.Point(193, 1); this.butFwd.Name = "butFwd"; this.butFwd.Size = new System.Drawing.Size(18, 23); this.butFwd.TabIndex = 21; // // butSetup // this.butSetup.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butSetup.Autosize = true; this.butSetup.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSetup.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSetup.CornerRadius = 4F; this.butSetup.Location = new System.Drawing.Point(590, 2); this.butSetup.Name = "butSetup"; this.butSetup.Size = new System.Drawing.Size(75, 23); this.butSetup.TabIndex = 3; this.butSetup.Text = "&Setup"; this.butSetup.Visible = false; this.butSetup.Click += new System.EventHandler(this.butSetup_Click); // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0, 0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(831, 25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0, ""); this.imageListMain.Images.SetKeyName(1, ""); this.imageListMain.Images.SetKeyName(2, ""); this.imageListMain.Images.SetKeyName(3, ""); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl2.Location = new System.Drawing.Point(0, 0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(831, 570); this.printPreviewControl2.TabIndex = 6; // // FormReportLikeCrystal // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(831, 570); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.panel1); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormReportOld2"; this.ShowInTaskbar = false; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormReport_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.panel1.ResumeLayout(false); this.ResumeLayout(false); }
public void TestBindingToPrintPreviewControl() { PrintPreviewControl control = new PrintPreviewControl(); IBusinessObject obj = new BusinessObject(); using(BindingScope scope = new BindingScope()) { IBusinessObject bindableSource = scope.CreateSource(obj); if(control is Control) ((Control)control).CreateControl(); control.BindingContext = new BindingContext(); PrintPreviewControl bindableTarget = scope.CreateTarget(control); int dataBindingsBeforeColumns = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Columns); Assert.AreEqual(dataBindingsBeforeColumns + 1, control.DataBindings.Count); Assert.AreEqual(control.Columns, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Columns, obj.IntValue); int dataBindingsBeforeRows = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Rows); Assert.AreEqual(dataBindingsBeforeRows + 1, control.DataBindings.Count); Assert.AreEqual(control.Rows, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Rows, obj.IntValue); int dataBindingsBeforeText = control.DataBindings.Count; scope.Bind(bindableSource.Name).To(bindableTarget.Text); Assert.AreEqual(dataBindingsBeforeText + 1, control.DataBindings.Count); Assert.AreEqual(control.Text, obj.Name); obj.ChangeName(); Assert.AreEqual(control.Text, obj.Name); int dataBindingsBeforeStartPage = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.StartPage); Assert.AreEqual(dataBindingsBeforeStartPage + 1, control.DataBindings.Count); Assert.AreEqual(control.StartPage, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.StartPage, obj.IntValue); int dataBindingsBeforeZoom = control.DataBindings.Count; scope.Bind(bindableSource.DoubleValue).To(bindableTarget.Zoom); Assert.AreEqual(dataBindingsBeforeZoom + 1, control.DataBindings.Count); Assert.AreEqual(control.Zoom, obj.DoubleValue); obj.ChangeDoubleValue(); Assert.AreEqual(control.Zoom, obj.DoubleValue); int dataBindingsBeforeAccessibleDefaultActionDescription = control.DataBindings.Count; scope.Bind(bindableSource.Name).To(bindableTarget.AccessibleDefaultActionDescription); Assert.AreEqual(dataBindingsBeforeAccessibleDefaultActionDescription + 1, control.DataBindings.Count); Assert.AreEqual(control.AccessibleDefaultActionDescription, obj.Name); obj.ChangeName(); Assert.AreEqual(control.AccessibleDefaultActionDescription, obj.Name); int dataBindingsBeforeAccessibleDescription = control.DataBindings.Count; scope.Bind(bindableSource.Name).To(bindableTarget.AccessibleDescription); Assert.AreEqual(dataBindingsBeforeAccessibleDescription + 1, control.DataBindings.Count); Assert.AreEqual(control.AccessibleDescription, obj.Name); obj.ChangeName(); Assert.AreEqual(control.AccessibleDescription, obj.Name); int dataBindingsBeforeAccessibleName = control.DataBindings.Count; scope.Bind(bindableSource.Name).To(bindableTarget.AccessibleName); Assert.AreEqual(dataBindingsBeforeAccessibleName + 1, control.DataBindings.Count); Assert.AreEqual(control.AccessibleName, obj.Name); obj.ChangeName(); Assert.AreEqual(control.AccessibleName, obj.Name); int dataBindingsBeforeHeight = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Height); Assert.AreEqual(dataBindingsBeforeHeight + 1, control.DataBindings.Count); Assert.AreEqual(control.Height, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Height, obj.IntValue); int dataBindingsBeforeLeft = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Left); Assert.AreEqual(dataBindingsBeforeLeft + 1, control.DataBindings.Count); Assert.AreEqual(control.Left, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Left, obj.IntValue); int dataBindingsBeforeName = control.DataBindings.Count; scope.Bind(bindableSource.Name).To(bindableTarget.Name); Assert.AreEqual(dataBindingsBeforeName + 1, control.DataBindings.Count); Assert.AreEqual(control.Name, obj.Name); obj.ChangeName(); Assert.AreEqual(control.Name, obj.Name); int dataBindingsBeforeTabIndex = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.TabIndex); Assert.AreEqual(dataBindingsBeforeTabIndex + 1, control.DataBindings.Count); Assert.AreEqual(control.TabIndex, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.TabIndex, obj.IntValue); int dataBindingsBeforeTop = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Top); Assert.AreEqual(dataBindingsBeforeTop + 1, control.DataBindings.Count); Assert.AreEqual(control.Top, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Top, obj.IntValue); int dataBindingsBeforeWidth = control.DataBindings.Count; scope.Bind(bindableSource.IntValue).To(bindableTarget.Width); Assert.AreEqual(dataBindingsBeforeWidth + 1, control.DataBindings.Count); Assert.AreEqual(control.Width, obj.IntValue); obj.ChangeIntValue(); Assert.AreEqual(control.Width, obj.IntValue); } }
public void IScrollProviderSetScrollPercentTest () { PrintPreviewControl printPreviewControl = new PrintPreviewControl (); IRawElementProviderSimple provider = ProviderFactory.GetProvider (printPreviewControl); IScrollProvider scrollProvider = (IScrollProvider) provider.GetPatternProvider (ScrollPatternIdentifiers.Pattern.Id); Assert.IsNotNull (scrollProvider, "Not returning ScrollPatternIdentifiers."); }
// Required method for Designer support - do not modify // the contents of this method with the code editor. private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PrintPreviewForm)); this.printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.pageSetupDialog1 = new System.Windows.Forms.PageSetupDialog(); this.printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); this.toolBar1 = new System.Windows.Forms.ToolBar(); this.tbtPrint = new System.Windows.Forms.ToolBarButton(); this.tlbtZoom = new System.Windows.Forms.ToolBarButton(); this.contextMenu1 = new System.Windows.Forms.ContextMenu(); this.menuAuto = new System.Windows.Forms.MenuItem(); this.menu10 = new System.Windows.Forms.MenuItem(); this.menu25 = new System.Windows.Forms.MenuItem(); this.menu50 = new System.Windows.Forms.MenuItem(); this.menu75 = new System.Windows.Forms.MenuItem(); this.menu100 = new System.Windows.Forms.MenuItem(); this.menu150 = new System.Windows.Forms.MenuItem(); this.menu200 = new System.Windows.Forms.MenuItem(); this.menu250 = new System.Windows.Forms.MenuItem(); this.menu500 = new System.Windows.Forms.MenuItem(); this.separator2 = new System.Windows.Forms.ToolBarButton(); this.tbtOne = new System.Windows.Forms.ToolBarButton(); this.tbtTwo = new System.Windows.Forms.ToolBarButton(); this.tbtThree = new System.Windows.Forms.ToolBarButton(); this.tbtFour = new System.Windows.Forms.ToolBarButton(); this.tbtSix = new System.Windows.Forms.ToolBarButton(); this.tbtPageSetup = new System.Windows.Forms.ToolBarButton(); this.toolbarImages = new System.Windows.Forms.ImageList(this.components); this.printPreviewDialog2 = new System.Windows.Forms.PrintPreviewDialog(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.label1 = new System.Windows.Forms.Label(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.winButton1 = new Xceed.Editors.WinButton(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.SuspendLayout(); // // printPreviewControl1 // this.printPreviewControl1.AutoZoom = false; this.printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.printPreviewControl1.Location = new System.Drawing.Point(0, 34); this.printPreviewControl1.Name = "printPreviewControl1"; this.printPreviewControl1.Size = new System.Drawing.Size(592, 332); this.printPreviewControl1.TabIndex = 0; this.printPreviewControl1.Zoom = 0.30000001192092896; this.printPreviewControl1.SizeChanged += new System.EventHandler(this.printPreviewControl1_SizeChanged); // // pageSetupDialog1 // this.pageSetupDialog1.ShowHelp = true; // // printPreviewDialog1 // this.printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog1.Enabled = true; this.printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog1.Icon"))); this.printPreviewDialog1.Name = "printPreviewDialog1"; this.printPreviewDialog1.Visible = false; // // toolBar1 // this.toolBar1.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBar1.AutoSize = false; this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.tbtPrint, this.tlbtZoom, this.separator2, this.tbtOne, this.tbtTwo, this.tbtThree, this.tbtFour, this.tbtSix, this.tbtPageSetup}); this.toolBar1.ButtonSize = new System.Drawing.Size(20, 20); this.toolBar1.Divider = false; this.toolBar1.DropDownArrows = true; this.toolBar1.ImageList = this.toolbarImages; this.toolBar1.Location = new System.Drawing.Point(0, 0); this.toolBar1.Name = "toolBar1"; this.toolBar1.ShowToolTips = true; this.toolBar1.Size = new System.Drawing.Size(592, 34); this.toolBar1.TabIndex = 1; this.toolBar1.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar1_ButtonClick); // // tbtPrint // this.tbtPrint.ImageIndex = 0; this.tbtPrint.Name = "tbtPrint"; this.tbtPrint.Tag = "Print"; this.tbtPrint.ToolTipText = "��ӡ"; // // tlbtZoom // this.tlbtZoom.DropDownMenu = this.contextMenu1; this.tlbtZoom.ImageIndex = 1; this.tlbtZoom.Name = "tlbtZoom"; this.tlbtZoom.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // contextMenu1 // this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.menuAuto, this.menu10, this.menu25, this.menu50, this.menu75, this.menu100, this.menu150, this.menu200, this.menu250, this.menu500}); // // menuAuto // this.menuAuto.Checked = true; this.menuAuto.DefaultItem = true; this.menuAuto.Index = 0; this.menuAuto.Text = "�Զ�"; this.menuAuto.Click += new System.EventHandler(this.menuItem1_Click); // // menu10 // this.menu10.Index = 1; this.menu10.Text = "10%"; this.menu10.Click += new System.EventHandler(this.menuItem1_Click); // // menu25 // this.menu25.Index = 2; this.menu25.Text = "25%"; this.menu25.Click += new System.EventHandler(this.menuItem1_Click); // // menu50 // this.menu50.Index = 3; this.menu50.Text = "50%"; this.menu50.Click += new System.EventHandler(this.menuItem1_Click); // // menu75 // this.menu75.Index = 4; this.menu75.Text = "75%"; this.menu75.Click += new System.EventHandler(this.menuItem1_Click); // // menu100 // this.menu100.Index = 5; this.menu100.Text = "100%"; this.menu100.Click += new System.EventHandler(this.menuItem1_Click); // // menu150 // this.menu150.Index = 6; this.menu150.Text = "150%"; this.menu150.Click += new System.EventHandler(this.menuItem1_Click); // // menu200 // this.menu200.Index = 7; this.menu200.Text = "200%"; this.menu200.Click += new System.EventHandler(this.menuItem1_Click); // // menu250 // this.menu250.Index = 8; this.menu250.Text = "250%"; this.menu250.Click += new System.EventHandler(this.menuItem1_Click); // // menu500 // this.menu500.Index = 9; this.menu500.Text = "500%"; this.menu500.Click += new System.EventHandler(this.menuItem1_Click); // // separator2 // this.separator2.Name = "separator2"; this.separator2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // tbtOne // this.tbtOne.ImageIndex = 5; this.tbtOne.Name = "tbtOne"; this.tbtOne.Pushed = true; // // tbtTwo // this.tbtTwo.ImageIndex = 6; this.tbtTwo.Name = "tbtTwo"; // // tbtThree // this.tbtThree.ImageIndex = 7; this.tbtThree.Name = "tbtThree"; // // tbtFour // this.tbtFour.ImageIndex = 8; this.tbtFour.Name = "tbtFour"; // // tbtSix // this.tbtSix.ImageIndex = 9; this.tbtSix.Name = "tbtSix"; // // tbtPageSetup // this.tbtPageSetup.ImageIndex = 10; this.tbtPageSetup.Name = "tbtPageSetup"; this.tbtPageSetup.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton; this.tbtPageSetup.Tag = "PageSetup"; this.tbtPageSetup.ToolTipText = "ҳ������"; // // toolbarImages // this.toolbarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("toolbarImages.ImageStream"))); this.toolbarImages.TransparentColor = System.Drawing.Color.Transparent; this.toolbarImages.Images.SetKeyName(0, ""); this.toolbarImages.Images.SetKeyName(1, ""); this.toolbarImages.Images.SetKeyName(2, ""); this.toolbarImages.Images.SetKeyName(3, ""); this.toolbarImages.Images.SetKeyName(4, ""); this.toolbarImages.Images.SetKeyName(5, ""); this.toolbarImages.Images.SetKeyName(6, ""); this.toolbarImages.Images.SetKeyName(7, ""); this.toolbarImages.Images.SetKeyName(8, ""); this.toolbarImages.Images.SetKeyName(9, ""); this.toolbarImages.Images.SetKeyName(10, ""); // // printPreviewDialog2 // this.printPreviewDialog2.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog2.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog2.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog2.Enabled = true; this.printPreviewDialog2.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog2.Icon"))); this.printPreviewDialog2.Name = "printPreviewDialog2"; this.printPreviewDialog2.Visible = false; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(336, 4); this.numericUpDown1.Maximum = new decimal(new int[] { 8, 0, 0, 0}); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0}); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(58, 21); this.numericUpDown1.TabIndex = 3; this.numericUpDown1.Value = new decimal(new int[] { 1, 0, 0, 0}); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // label1 // this.label1.Location = new System.Drawing.Point(288, 2); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(38, 26); this.label1.TabIndex = 4; this.label1.Text = "ҳ��"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // printDialog1 // this.printDialog1.AllowSomePages = true; this.printDialog1.ShowHelp = true; // // winButton1 // this.winButton1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.winButton1.Location = new System.Drawing.Point(420, 3); this.winButton1.Name = "winButton1"; this.winButton1.Size = new System.Drawing.Size(153, 26); this.winButton1.TabIndex = 7; this.winButton1.Text = "ҳüҳ������"; this.winButton1.Click += new System.EventHandler(this.button2_Click); // // PrintPreviewForm // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(592, 366); this.Controls.Add(this.winButton1); this.Controls.Add(this.printPreviewControl1); this.Controls.Add(this.label1); this.Controls.Add(this.numericUpDown1); this.Controls.Add(this.toolBar1); this.Name = "PrintPreviewForm"; this.Text = "��ӡԤ��"; ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.ResumeLayout(false); }
public abstract Size PrintPreviewControlGetPageSize (PrintPreviewControl preview);
private void btnPrintPreview_Click(object sender, System.EventArgs e) { System.Windows.Forms.CurrencyManager cm = (CurrencyManager)BindingContext[dgReceipt.DataSource,dgReceipt.DataMember]; System.Data.DataView dvJoined = (System.Data.DataView) cm.List; System.Data.DataView dv; if (selectedRows.Count > 0) { System.Data.DataSet ds = Utils.SelectedRowsDataSet(dvJoined, selectedRows); dv = ds.Tables[0].DefaultView; } else dv = dvJoined; dv.Sort = "visitdatetime DESC"; Utils.PatientNote[] patientNotesArray = Utils.CreatePatientNotesArray(database, dv); printReceipt.SetContent(patientNotesArray); printPreviewDialog.Document = printReceipt.PrintDocument; System.Windows.Forms.PrintPreviewControl printPreviewControl = new PrintPreviewControl(); foreach (Control c in printPreviewDialog.Controls) { if (c.GetType() == printPreviewControl.GetType()) printPreviewControl = (System.Windows.Forms.PrintPreviewControl)c; } if (printPreviewControl != null) printPreviewControl.Zoom = 1.0; printPreviewDialog.ShowDialog(); }
public abstract Size PrintPreviewControlGetPageSize(PrintPreviewControl preview);
public void IScrollProviderHorizontalScrollPercentTest () { PrintPreviewControl printPreviewControl = new PrintPreviewControl (); printPreviewControl.Size = new System.Drawing.Size (100, 100); printPreviewControl.Document = new System.Drawing.Printing.PrintDocument (); printPreviewControl.Zoom = 0.1; IRawElementProviderFragmentRoot provider = (IRawElementProviderFragmentRoot) GetProviderFromControl (printPreviewControl); // IRawElementProviderSimple provider = // ProviderFactory.GetProvider (printPreviewControl); IScrollProvider scrollProvider = (IScrollProvider) provider.GetPatternProvider (ScrollPatternIdentifiers.Pattern.Id); Assert.IsNotNull (scrollProvider, "Not returning ScrollPatternIdentifiers."); }
private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FrmPrintPreview)); this.ToolbarImages = new System.Windows.Forms.ImageList(this.components); this.Menu25 = new System.Windows.Forms.MenuItem(); this.Menu50 = new System.Windows.Forms.MenuItem(); this.Menu10 = new System.Windows.Forms.MenuItem(); this.Menu100 = new System.Windows.Forms.MenuItem(); this.ZoomMenu = new System.Windows.Forms.ContextMenu(); this.MenuAuto = new System.Windows.Forms.MenuItem(); this.Menu500 = new System.Windows.Forms.MenuItem(); this.Menu200 = new System.Windows.Forms.MenuItem(); this.Menu150 = new System.Windows.Forms.MenuItem(); this.Menu75 = new System.Windows.Forms.MenuItem(); this.PrintToolbar = new System.Windows.Forms.Panel(); this.PageRange = new System.Windows.Forms.TextBox(); this.toolBarMain = new System.Windows.Forms.ToolBar(); this.toolBarBtnActPrint = new System.Windows.Forms.ToolBarButton(); this.printerMenu = new System.Windows.Forms.ContextMenu(); this.toolBarBtnActZoomAuto = new System.Windows.Forms.ToolBarButton(); this.toolBarButton2 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnOnePage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnTwoPages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnThreePages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFourPages = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnSixPages = new System.Windows.Forms.ToolBarButton(); this.toolBarButton8 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnFirstPage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnPrevPage = new System.Windows.Forms.ToolBarButton(); this.toolBarButtonDummy = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnNextPage = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnLastPage = new System.Windows.Forms.ToolBarButton(); this.toolBarButton13 = new System.Windows.Forms.ToolBarButton(); this.toolBarBtnScale = new System.Windows.Forms.ToolBarButton(); this.scaleMenu = new System.Windows.Forms.ContextMenu(); this.miScaleToPage = new System.Windows.Forms.MenuItem(); this.miOriginalScale = new System.Windows.Forms.MenuItem(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.miDoubleScale = new System.Windows.Forms.MenuItem(); this.miHalveSpace = new System.Windows.Forms.MenuItem(); this.miIncreaseScale = new System.Windows.Forms.MenuItem(); this.miDecreaseScale = new System.Windows.Forms.MenuItem(); this.toolBarBtnOrientation = new System.Windows.Forms.ToolBarButton(); this.PreviewArea = new System.Windows.Forms.PrintPreviewControl(); this.PrintToolbar.SuspendLayout(); this.SuspendLayout(); // // ToolbarImages // this.ToolbarImages.ColorDepth = System.Windows.Forms.ColorDepth.Depth24Bit; this.ToolbarImages.ImageSize = new System.Drawing.Size(25, 25); this.ToolbarImages.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ToolbarImages.ImageStream"))); this.ToolbarImages.TransparentColor = System.Drawing.Color.FromArgb(((System.Byte)(212)), ((System.Byte)(208)), ((System.Byte)(200))); // // Menu25 // this.Menu25.Index = 7; this.Menu25.Text = "25%"; this.Menu25.Click += new System.EventHandler(this.Menu25_Click); // // Menu50 // this.Menu50.Index = 6; this.Menu50.Text = "50%"; this.Menu50.Click += new System.EventHandler(this.Menu50_Click); // // Menu10 // this.Menu10.Index = 8; this.Menu10.Text = "10%"; this.Menu10.Click += new System.EventHandler(this.Menu10_Click); // // Menu100 // this.Menu100.Index = 4; this.Menu100.Text = "100%"; this.Menu100.Click += new System.EventHandler(this.Menu100_Click); // // ZoomMenu // this.ZoomMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.MenuAuto, this.Menu500, this.Menu200, this.Menu150, this.Menu100, this.Menu75, this.Menu50, this.Menu25, this.Menu10}); // // MenuAuto // this.MenuAuto.Checked = true; this.MenuAuto.Index = 0; this.MenuAuto.Text = "Auto"; this.MenuAuto.Click += new System.EventHandler(this.MenuAuto_Click); // // Menu500 // this.Menu500.Index = 1; this.Menu500.Text = "500%"; this.Menu500.Click += new System.EventHandler(this.Menu500_Click); // // Menu200 // this.Menu200.Index = 2; this.Menu200.Text = "200%"; this.Menu200.Click += new System.EventHandler(this.Menu200_Click); // // Menu150 // this.Menu150.Index = 3; this.Menu150.Text = "150%"; this.Menu150.Click += new System.EventHandler(this.Menu150_Click); // // Menu75 // this.Menu75.Index = 5; this.Menu75.Text = "75%"; this.Menu75.Click += new System.EventHandler(this.Menu75_Click); // // PrintToolbar // this.PrintToolbar.Controls.AddRange(new System.Windows.Forms.Control[] { this.PageRange, this.toolBarMain}); this.PrintToolbar.Dock = System.Windows.Forms.DockStyle.Top; this.PrintToolbar.Name = "PrintToolbar"; this.PrintToolbar.Size = new System.Drawing.Size(640, 34); this.PrintToolbar.TabIndex = 6; // // PageRange // this.PageRange.BackColor = System.Drawing.SystemColors.Control; this.PageRange.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.PageRange.Enabled = false; this.PageRange.Location = new System.Drawing.Point(336, 8); this.PageRange.Name = "PageRange"; this.PageRange.Size = new System.Drawing.Size(24, 20); this.PageRange.TabIndex = 5; this.PageRange.Text = "1"; this.PageRange.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; // // toolBarMain // this.toolBarMain.Appearance = System.Windows.Forms.ToolBarAppearance.Flat; this.toolBarMain.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] { this.toolBarBtnActPrint, this.toolBarBtnActZoomAuto, this.toolBarButton2, this.toolBarBtnOnePage, this.toolBarBtnTwoPages, this.toolBarBtnThreePages, this.toolBarBtnFourPages, this.toolBarBtnSixPages, this.toolBarButton8, this.toolBarBtnFirstPage, this.toolBarBtnPrevPage, this.toolBarButtonDummy, this.toolBarBtnNextPage, this.toolBarBtnLastPage, this.toolBarButton13, this.toolBarBtnScale, this.toolBarBtnOrientation}); this.toolBarMain.ButtonSize = new System.Drawing.Size(26, 26); this.toolBarMain.DropDownArrows = true; this.toolBarMain.ImageList = this.ToolbarImages; this.toolBarMain.Name = "toolBarMain"; this.toolBarMain.ShowToolTips = true; this.toolBarMain.Size = new System.Drawing.Size(640, 34); this.toolBarMain.TabIndex = 0; this.toolBarMain.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBarMain_ButtonClick); // // toolBarBtnActPrint // this.toolBarBtnActPrint.DropDownMenu = this.printerMenu; this.toolBarBtnActPrint.ImageIndex = 0; this.toolBarBtnActPrint.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // toolBarBtnActZoomAuto // this.toolBarBtnActZoomAuto.DropDownMenu = this.ZoomMenu; this.toolBarBtnActZoomAuto.ImageIndex = 1; this.toolBarBtnActZoomAuto.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // toolBarButton2 // this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnOnePage // this.toolBarBtnOnePage.ImageIndex = 2; // // toolBarBtnTwoPages // this.toolBarBtnTwoPages.ImageIndex = 3; // // toolBarBtnThreePages // this.toolBarBtnThreePages.ImageIndex = 4; // // toolBarBtnFourPages // this.toolBarBtnFourPages.ImageIndex = 5; // // toolBarBtnSixPages // this.toolBarBtnSixPages.ImageIndex = 6; // // toolBarButton8 // this.toolBarButton8.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnFirstPage // this.toolBarBtnFirstPage.ImageIndex = 7; // // toolBarBtnPrevPage // this.toolBarBtnPrevPage.ImageIndex = 8; // // toolBarButtonDummy // this.toolBarButtonDummy.Enabled = false; // // toolBarBtnNextPage // this.toolBarBtnNextPage.ImageIndex = 9; // // toolBarBtnLastPage // this.toolBarBtnLastPage.ImageIndex = 10; // // toolBarButton13 // this.toolBarButton13.Style = System.Windows.Forms.ToolBarButtonStyle.Separator; // // toolBarBtnScale // this.toolBarBtnScale.DropDownMenu = this.scaleMenu; this.toolBarBtnScale.ImageIndex = 13; this.toolBarBtnScale.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; // // scaleMenu // this.scaleMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { this.miScaleToPage, this.miOriginalScale, this.menuItem1, this.miDoubleScale, this.miHalveSpace, this.miIncreaseScale, this.miDecreaseScale}); // // miScaleToPage // this.miScaleToPage.Index = 0; this.miScaleToPage.Text = "Fit to Page"; this.miScaleToPage.Click += new System.EventHandler(this.miScaleToPage_Click); // // miOriginalScale // this.miOriginalScale.Index = 1; this.miOriginalScale.Text = "Original Scale"; this.miOriginalScale.Click += new System.EventHandler(this.miOriginalScale_Click); // // menuItem1 // this.menuItem1.Index = 2; this.menuItem1.Text = "-"; // // miDoubleScale // this.miDoubleScale.Index = 3; this.miDoubleScale.Text = "Double Scale"; this.miDoubleScale.Click += new System.EventHandler(this.miDoubleScale_Click); // // miHalveSpace // this.miHalveSpace.Index = 4; this.miHalveSpace.Text = "Halve Scale"; this.miHalveSpace.Click += new System.EventHandler(this.miHalveSpace_Click); // // miIncreaseScale // this.miIncreaseScale.Index = 5; this.miIncreaseScale.Text = "Increase Scale"; this.miIncreaseScale.Click += new System.EventHandler(this.miIncreaseScale_Click); // // miDecreaseScale // this.miDecreaseScale.Index = 6; this.miDecreaseScale.Text = "Decrease Scale"; this.miDecreaseScale.Click += new System.EventHandler(this.miDecreaseScale_Click); // // toolBarBtnOrientation // this.toolBarBtnOrientation.ImageIndex = 12; // // PreviewArea // this.PreviewArea.AutoZoom = false; this.PreviewArea.Dock = System.Windows.Forms.DockStyle.Fill; this.PreviewArea.Location = new System.Drawing.Point(0, 34); this.PreviewArea.Name = "PreviewArea"; this.PreviewArea.Size = new System.Drawing.Size(640, 388); this.PreviewArea.TabIndex = 12; this.PreviewArea.Zoom = 1; // // FrmPrintPreview // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(640, 422); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.PreviewArea, this.PrintToolbar}); this.MinimumSize = new System.Drawing.Size(584, 392); this.Name = "FrmPrintPreview"; this.Text = "1"; this.Load += new System.EventHandler(this.FrmPrintPreview_Load); this.Closed += new System.EventHandler(this.FrmPrintPreview_Closed); this.PrintToolbar.ResumeLayout(false); this.ResumeLayout(false); }
private void menuPreviewJournal_Click(object sender, System.EventArgs e) { if (patient != null && selectedPatientRow != null) { //TODO: Should only be possible to print visitnotes?? DataSet dsPrintJournal = new DataSet(); dsPrintJournal.Merge(selectedPatientRow.Row.GetChildRows("PatientNotes")); dsPrintJournal.Tables[0].DefaultView.Sort = "visitdatetime DESC"; printJournal.SetContent(patient, dsPrintJournal.Tables[0].DefaultView); printPreviewDialog.Document = printJournal.PrintDocument; System.Windows.Forms.PrintPreviewControl printPreviewControl = new PrintPreviewControl(); foreach (Control c in printPreviewDialog.Controls) { if (c.GetType() == printPreviewControl.GetType()) printPreviewControl = (System.Windows.Forms.PrintPreviewControl)c; } if (printPreviewControl != null) printPreviewControl.Zoom = 1.0; printPreviewDialog.ShowDialog(); } else MessageBox.Show("Välj en patient att skriva ut journal för", "Kunde ej skriva ut journal"); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormRpStatement)); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.butPrint = new OpenDental.UI.Button(); this.butClose = new OpenDental.UI.Button(); this.panelZoom = new System.Windows.Forms.Panel(); this.butFwd = new OpenDental.UI.Button(); this.butBack = new OpenDental.UI.Button(); this.labelTotPages = new System.Windows.Forms.Label(); this.butZoomIn = new OpenDental.UI.Button(); this.butFullPage = new OpenDental.UI.Button(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.panelZoom.SuspendLayout(); this.SuspendLayout(); // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(-116,-7); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842,538); this.printPreviewControl2.TabIndex = 6; this.printPreviewControl2.Zoom = 1; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0,0); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(340,5); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(85,27); this.butPrint.TabIndex = 8; this.butPrint.Text = " Print"; this.butPrint.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Visible = false; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0,0); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butClose.Location = new System.Drawing.Point(434,5); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75,27); this.butClose.TabIndex = 7; this.butClose.Text = "Close"; // // panelZoom // this.panelZoom.Controls.Add(this.butFwd); this.panelZoom.Controls.Add(this.butBack); this.panelZoom.Controls.Add(this.labelTotPages); this.panelZoom.Controls.Add(this.butZoomIn); this.panelZoom.Controls.Add(this.butFullPage); this.panelZoom.Controls.Add(this.butClose); this.panelZoom.Controls.Add(this.butPrint); this.panelZoom.Location = new System.Drawing.Point(35,419); this.panelZoom.Name = "panelZoom"; this.panelZoom.Size = new System.Drawing.Size(524,37); this.panelZoom.TabIndex = 12; // // butFwd // this.butFwd.AdjustImageLocation = new System.Drawing.Point(0,0); this.butFwd.Autosize = true; this.butFwd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFwd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFwd.CornerRadius = 4F; this.butFwd.Image = global::OpenDental.Properties.Resources.Right; this.butFwd.Location = new System.Drawing.Point(195,7); this.butFwd.Name = "butFwd"; this.butFwd.Size = new System.Drawing.Size(18,22); this.butFwd.TabIndex = 13; this.butFwd.Click += new System.EventHandler(this.butFwd_Click); // // butBack // this.butBack.AdjustImageLocation = new System.Drawing.Point(0,0); this.butBack.Autosize = true; this.butBack.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butBack.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butBack.CornerRadius = 4F; this.butBack.Image = global::OpenDental.Properties.Resources.Left; this.butBack.Location = new System.Drawing.Point(123,7); this.butBack.Name = "butBack"; this.butBack.Size = new System.Drawing.Size(18,22); this.butBack.TabIndex = 12; this.butBack.Click += new System.EventHandler(this.butBack_Click); // // labelTotPages // this.labelTotPages.Font = new System.Drawing.Font("Microsoft Sans Serif",9F,System.Drawing.FontStyle.Bold,System.Drawing.GraphicsUnit.Point,((byte)(0))); this.labelTotPages.Location = new System.Drawing.Point(143,9); this.labelTotPages.Name = "labelTotPages"; this.labelTotPages.Size = new System.Drawing.Size(47,18); this.labelTotPages.TabIndex = 11; this.labelTotPages.Text = "1 / 2"; this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // butZoomIn // this.butZoomIn.AdjustImageLocation = new System.Drawing.Point(0,0); this.butZoomIn.Autosize = true; this.butZoomIn.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomIn.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomIn.CornerRadius = 4F; this.butZoomIn.Image = global::OpenDental.Properties.Resources.butZoomIn; this.butZoomIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomIn.Location = new System.Drawing.Point(9,5); this.butZoomIn.Name = "butZoomIn"; this.butZoomIn.Size = new System.Drawing.Size(94,27); this.butZoomIn.TabIndex = 10; this.butZoomIn.Text = " Zoom In"; this.butZoomIn.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomIn.Visible = false; this.butZoomIn.Click += new System.EventHandler(this.butZoomIn_Click); // // butFullPage // this.butFullPage.AdjustImageLocation = new System.Drawing.Point(0,0); this.butFullPage.Autosize = true; this.butFullPage.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFullPage.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFullPage.CornerRadius = 4F; this.butFullPage.Location = new System.Drawing.Point(9,5); this.butFullPage.Name = "butFullPage"; this.butFullPage.Size = new System.Drawing.Size(75,27); this.butFullPage.TabIndex = 9; this.butFullPage.Text = "Full Page"; this.butFullPage.Visible = false; this.butFullPage.Click += new System.EventHandler(this.butFullPage_Click); // // FormRpStatement // this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.ClientSize = new System.Drawing.Size(787,610); this.Controls.Add(this.panelZoom); this.Controls.Add(this.printPreviewControl2); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormRpStatement"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Statement Preview"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormRpStatement_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormRpStatement_Layout); this.panelZoom.ResumeLayout(false); this.ResumeLayout(false); }
public override Size PrintPreviewControlGetPageSize (PrintPreviewControl preview) { int page_width, page_height; int padding = PrintPreviewControlPadding; PreviewPageInfo[] pis = preview.page_infos; if (preview.AutoZoom) { int height_available = preview.ClientRectangle.Height - (preview.Rows) * padding - 2 * padding; int width_available = preview.ClientRectangle.Width - (preview.Columns - 1) * padding - 2 * padding; float image_ratio = (float)pis[0].Image.Width / pis[0].Image.Height; /* try to lay things out using the width to determine the size */ page_width = width_available / preview.Columns; page_height = (int)(page_width / image_ratio); /* does the height fit? */ if (page_height * (preview.Rows + 1) > height_available) { /* no, lay things out via the height */ page_height = height_available / (preview.Rows + 1); page_width = (int)(page_height * image_ratio); } } else { page_width = (int)(pis[0].Image.Width * preview.Zoom); page_height = (int)(pis[0].Image.Height * preview.Zoom); } return new Size (page_width, page_height); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormQuery)); this.butClose = new OpenDental.UI.Button(); this.grid2 = new System.Windows.Forms.DataGrid(); this.panelTop = new System.Windows.Forms.Panel(); this.textQuery = new OpenDental.ODtextBox(); this.butExportExcel = new OpenDental.UI.Button(); this.butPaste = new OpenDental.UI.Button(); this.butCopy = new OpenDental.UI.Button(); this.textTitle = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.butAdd = new OpenDental.UI.Button(); this.butFormulate = new OpenDental.UI.Button(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.radioHuman = new System.Windows.Forms.RadioButton(); this.radioRaw = new System.Windows.Forms.RadioButton(); this.butSubmit = new OpenDental.UI.Button(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.printPreviewDialog2 = new System.Windows.Forms.PrintPreviewDialog(); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.butFullPage = new OpenDental.UI.Button(); this.panelZoom = new System.Windows.Forms.Panel(); this.labelTotPages = new System.Windows.Forms.Label(); this.butZoomIn = new OpenDental.UI.Button(); this.butBack = new OpenDental.UI.Button(); this.butFwd = new OpenDental.UI.Button(); this.saveFileDialog2 = new System.Windows.Forms.SaveFileDialog(); this.butPrint = new OpenDental.UI.Button(); this.butExport = new OpenDental.UI.Button(); this.butQView = new OpenDental.UI.Button(); this.butPrintPreview = new OpenDental.UI.Button(); ((System.ComponentModel.ISupportInitialize)(this.grid2)).BeginInit(); this.panelTop.SuspendLayout(); this.groupBox1.SuspendLayout(); this.panelZoom.SuspendLayout(); this.SuspendLayout(); // // butClose // this.butClose.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butClose.Autosize = true; this.butClose.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butClose.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butClose.CornerRadius = 4F; this.butClose.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butClose.Location = new System.Drawing.Point(878, 755); this.butClose.Name = "butClose"; this.butClose.Size = new System.Drawing.Size(75, 27); this.butClose.TabIndex = 5; this.butClose.Text = "&Close"; this.butClose.Click += new System.EventHandler(this.butClose_Click); // // grid2 // this.grid2.DataMember = ""; this.grid2.HeaderForeColor = System.Drawing.SystemColors.ControlText; this.grid2.Location = new System.Drawing.Point(0, 150); this.grid2.Name = "grid2"; this.grid2.ReadOnly = true; this.grid2.Size = new System.Drawing.Size(958, 590); this.grid2.TabIndex = 1; // // panelTop // this.panelTop.Controls.Add(this.textQuery); this.panelTop.Controls.Add(this.butExportExcel); this.panelTop.Controls.Add(this.butPaste); this.panelTop.Controls.Add(this.butCopy); this.panelTop.Controls.Add(this.textTitle); this.panelTop.Controls.Add(this.label1); this.panelTop.Controls.Add(this.butAdd); this.panelTop.Controls.Add(this.butFormulate); this.panelTop.Controls.Add(this.groupBox1); this.panelTop.Controls.Add(this.butSubmit); this.panelTop.Location = new System.Drawing.Point(0, 0); this.panelTop.Name = "panelTop"; this.panelTop.Size = new System.Drawing.Size(956, 104); this.panelTop.TabIndex = 2; // // textQuery // this.textQuery.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textQuery.Location = new System.Drawing.Point(2, 3); this.textQuery.Name = "textQuery"; this.textQuery.QuickPasteType = OpenDentBusiness.QuickPasteType.Query; this.textQuery.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; this.textQuery.Size = new System.Drawing.Size(551, 76); this.textQuery.SpellCheckIsEnabled = false; this.textQuery.TabIndex = 16; this.textQuery.Text = ""; // // butExportExcel // this.butExportExcel.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butExportExcel.Autosize = true; this.butExportExcel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butExportExcel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butExportExcel.CornerRadius = 4F; this.butExportExcel.Image = global::OpenDental.Properties.Resources.butExportExcel; this.butExportExcel.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butExportExcel.Location = new System.Drawing.Point(712, 69); this.butExportExcel.Name = "butExportExcel"; this.butExportExcel.Size = new System.Drawing.Size(79, 26); this.butExportExcel.TabIndex = 15; this.butExportExcel.Text = "Excel"; this.butExportExcel.Visible = false; this.butExportExcel.Click += new System.EventHandler(this.butExportExcel_Click); // // butPaste // this.butPaste.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPaste.Autosize = true; this.butPaste.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPaste.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPaste.CornerRadius = 4F; this.butPaste.Image = global::OpenDental.Properties.Resources.butPaste; this.butPaste.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPaste.Location = new System.Drawing.Point(631, 54); this.butPaste.Name = "butPaste"; this.butPaste.Size = new System.Drawing.Size(65, 23); this.butPaste.TabIndex = 11; this.butPaste.Text = "Paste"; this.butPaste.Click += new System.EventHandler(this.butPaste_Click); // // butCopy // this.butCopy.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butCopy.Autosize = true; this.butCopy.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCopy.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCopy.CornerRadius = 4F; this.butCopy.Image = global::OpenDental.Properties.Resources.butCopy; this.butCopy.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butCopy.Location = new System.Drawing.Point(556, 54); this.butCopy.Name = "butCopy"; this.butCopy.Size = new System.Drawing.Size(72, 23); this.butCopy.TabIndex = 10; this.butCopy.Text = "Copy"; this.butCopy.Click += new System.EventHandler(this.butCopy_Click); // // textTitle // this.textTitle.Location = new System.Drawing.Point(66, 82); this.textTitle.Name = "textTitle"; this.textTitle.Size = new System.Drawing.Size(219, 20); this.textTitle.TabIndex = 1; // // label1 // this.label1.Location = new System.Drawing.Point(7, 84); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(54, 13); this.label1.TabIndex = 9; this.label1.Text = "Title"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleRight; // // butAdd // this.butAdd.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butAdd.Autosize = true; this.butAdd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butAdd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butAdd.CornerRadius = 4F; this.butAdd.Location = new System.Drawing.Point(556, 30); this.butAdd.Name = "butAdd"; this.butAdd.Size = new System.Drawing.Size(140, 23); this.butAdd.TabIndex = 3; this.butAdd.Text = "Add To Favorites"; this.butAdd.Click += new System.EventHandler(this.butAdd_Click); // // butFormulate // this.butFormulate.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butFormulate.Autosize = true; this.butFormulate.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFormulate.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFormulate.CornerRadius = 4F; this.butFormulate.Location = new System.Drawing.Point(556, 6); this.butFormulate.Name = "butFormulate"; this.butFormulate.Size = new System.Drawing.Size(140, 23); this.butFormulate.TabIndex = 2; this.butFormulate.Text = "Favorites"; this.butFormulate.Click += new System.EventHandler(this.butFormulate_Click); // // groupBox1 // this.groupBox1.Controls.Add(this.radioHuman); this.groupBox1.Controls.Add(this.radioRaw); this.groupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.groupBox1.Location = new System.Drawing.Point(715, 6); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(122, 58); this.groupBox1.TabIndex = 7; this.groupBox1.TabStop = false; this.groupBox1.Text = "Format"; // // radioHuman // this.radioHuman.Checked = true; this.radioHuman.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioHuman.Location = new System.Drawing.Point(10, 16); this.radioHuman.Name = "radioHuman"; this.radioHuman.Size = new System.Drawing.Size(108, 16); this.radioHuman.TabIndex = 0; this.radioHuman.TabStop = true; this.radioHuman.Text = "Human-readable"; this.radioHuman.Click += new System.EventHandler(this.radioHuman_Click); // // radioRaw // this.radioRaw.FlatStyle = System.Windows.Forms.FlatStyle.System; this.radioRaw.Location = new System.Drawing.Point(10, 34); this.radioRaw.Name = "radioRaw"; this.radioRaw.Size = new System.Drawing.Size(104, 16); this.radioRaw.TabIndex = 1; this.radioRaw.Text = "Raw"; this.radioRaw.Click += new System.EventHandler(this.radioRaw_Click); // // butSubmit // this.butSubmit.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butSubmit.Autosize = true; this.butSubmit.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butSubmit.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butSubmit.CornerRadius = 4F; this.butSubmit.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.butSubmit.Location = new System.Drawing.Point(556, 78); this.butSubmit.Name = "butSubmit"; this.butSubmit.Size = new System.Drawing.Size(102, 23); this.butSubmit.TabIndex = 6; this.butSubmit.Text = "&Submit Query"; this.butSubmit.Click += new System.EventHandler(this.butSubmit_Click); // // printPreviewDialog2 // this.printPreviewDialog2.AutoScrollMargin = new System.Drawing.Size(0, 0); this.printPreviewDialog2.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.printPreviewDialog2.ClientSize = new System.Drawing.Size(400, 300); this.printPreviewDialog2.Enabled = true; this.printPreviewDialog2.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog2.Icon"))); this.printPreviewDialog2.Name = "printPreviewDialog2"; this.printPreviewDialog2.Visible = false; // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(18, 136); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842, 538); this.printPreviewControl2.TabIndex = 5; this.printPreviewControl2.Zoom = 1D; // // butFullPage // this.butFullPage.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butFullPage.Autosize = true; this.butFullPage.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFullPage.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFullPage.CornerRadius = 4F; this.butFullPage.Location = new System.Drawing.Point(9, 5); this.butFullPage.Name = "butFullPage"; this.butFullPage.Size = new System.Drawing.Size(75, 27); this.butFullPage.TabIndex = 9; this.butFullPage.Text = "&Full Page"; this.butFullPage.Visible = false; this.butFullPage.Click += new System.EventHandler(this.butFullPage_Click); // // panelZoom // this.panelZoom.Controls.Add(this.labelTotPages); this.panelZoom.Controls.Add(this.butFullPage); this.panelZoom.Controls.Add(this.butZoomIn); this.panelZoom.Controls.Add(this.butBack); this.panelZoom.Controls.Add(this.butFwd); this.panelZoom.Location = new System.Drawing.Point(336, 746); this.panelZoom.Name = "panelZoom"; this.panelZoom.Size = new System.Drawing.Size(229, 37); this.panelZoom.TabIndex = 0; this.panelZoom.Visible = false; // // labelTotPages // this.labelTotPages.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelTotPages.Location = new System.Drawing.Point(143, 10); this.labelTotPages.Name = "labelTotPages"; this.labelTotPages.Size = new System.Drawing.Size(52, 18); this.labelTotPages.TabIndex = 11; this.labelTotPages.Text = "25 / 26"; this.labelTotPages.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // butZoomIn // this.butZoomIn.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butZoomIn.Autosize = true; this.butZoomIn.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomIn.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomIn.CornerRadius = 4F; this.butZoomIn.Image = global::OpenDental.Properties.Resources.butZoomIn; this.butZoomIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomIn.Location = new System.Drawing.Point(9, 5); this.butZoomIn.Name = "butZoomIn"; this.butZoomIn.Size = new System.Drawing.Size(91, 26); this.butZoomIn.TabIndex = 12; this.butZoomIn.Text = "Zoom In"; this.butZoomIn.Click += new System.EventHandler(this.butZoomIn_Click); // // butBack // this.butBack.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butBack.Autosize = true; this.butBack.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butBack.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butBack.CornerRadius = 4F; this.butBack.Image = global::OpenDental.Properties.Resources.Left; this.butBack.Location = new System.Drawing.Point(123, 7); this.butBack.Name = "butBack"; this.butBack.Size = new System.Drawing.Size(18, 23); this.butBack.TabIndex = 17; this.butBack.Click += new System.EventHandler(this.butBack_Click); // // butFwd // this.butFwd.AdjustImageLocation = new System.Drawing.Point(1, 0); this.butFwd.Autosize = true; this.butFwd.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butFwd.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butFwd.CornerRadius = 4F; this.butFwd.Image = global::OpenDental.Properties.Resources.Right; this.butFwd.Location = new System.Drawing.Point(195, 7); this.butFwd.Name = "butFwd"; this.butFwd.Size = new System.Drawing.Size(18, 23); this.butFwd.TabIndex = 18; this.butFwd.Click += new System.EventHandler(this.butFwd_Click); // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(784, 755); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(79, 26); this.butPrint.TabIndex = 13; this.butPrint.Text = "&Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // butExport // this.butExport.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butExport.Autosize = true; this.butExport.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butExport.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butExport.CornerRadius = 4F; this.butExport.Image = global::OpenDental.Properties.Resources.butExport; this.butExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butExport.Location = new System.Drawing.Point(689, 755); this.butExport.Name = "butExport"; this.butExport.Size = new System.Drawing.Size(79, 26); this.butExport.TabIndex = 14; this.butExport.Text = "&Export"; this.butExport.Click += new System.EventHandler(this.butExport_Click); // // butQView // this.butQView.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butQView.Autosize = true; this.butQView.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butQView.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butQView.CornerRadius = 4F; this.butQView.Image = global::OpenDental.Properties.Resources.butQView; this.butQView.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butQView.Location = new System.Drawing.Point(573, 741); this.butQView.Name = "butQView"; this.butQView.Size = new System.Drawing.Size(104, 26); this.butQView.TabIndex = 15; this.butQView.Text = "&Query View"; this.butQView.Click += new System.EventHandler(this.butQView_Click); // // butPrintPreview // this.butPrintPreview.AdjustImageLocation = new System.Drawing.Point(0, 0); this.butPrintPreview.Autosize = true; this.butPrintPreview.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrintPreview.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrintPreview.CornerRadius = 4F; this.butPrintPreview.Image = global::OpenDental.Properties.Resources.butPreview; this.butPrintPreview.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrintPreview.Location = new System.Drawing.Point(572, 755); this.butPrintPreview.Name = "butPrintPreview"; this.butPrintPreview.Size = new System.Drawing.Size(113, 26); this.butPrintPreview.TabIndex = 16; this.butPrintPreview.Text = "P&rint Preview"; this.butPrintPreview.Click += new System.EventHandler(this.butPrintPreview_Click); // // FormQuery // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.CancelButton = this.butClose; this.ClientSize = new System.Drawing.Size(963, 788); this.Controls.Add(this.butPrintPreview); this.Controls.Add(this.butQView); this.Controls.Add(this.butExport); this.Controls.Add(this.butPrint); this.Controls.Add(this.butClose); this.Controls.Add(this.panelZoom); this.Controls.Add(this.printPreviewControl2); this.Controls.Add(this.grid2); this.Controls.Add(this.panelTop); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormQuery"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Query"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Closing += new System.ComponentModel.CancelEventHandler(this.FormQuery_Closing); this.Load += new System.EventHandler(this.FormQuery_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormQuery_Layout); ((System.ComponentModel.ISupportInitialize)(this.grid2)).EndInit(); this.panelTop.ResumeLayout(false); this.panelTop.PerformLayout(); this.groupBox1.ResumeLayout(false); this.panelZoom.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmOutpatientChargeIdetityPrint)); this.panelTop = new System.Windows.Forms.Panel(); this.m_cmdOutExcel = new PinkieControls.ButtonXP(); this.label5 = new System.Windows.Forms.Label(); this.numericUpDown1 = new System.Windows.Forms.NumericUpDown(); this.buttonXP2 = new PinkieControls.ButtonXP(); this.m_cmdQuery = new PinkieControls.ButtonXP(); this.m_cboOperator = new System.Windows.Forms.ComboBox(); this.label4 = new System.Windows.Forms.Label(); this.m_cboIdentity = new System.Windows.Forms.ComboBox(); this.label3 = new System.Windows.Forms.Label(); this.m_dateTimePickerEnd = new System.Windows.Forms.DateTimePicker(); this.label2 = new System.Windows.Forms.Label(); this.m_dateTimePickerBegin = new System.Windows.Forms.DateTimePicker(); this.label1 = new System.Windows.Forms.Label(); this.m_cmdExit = new PinkieControls.ButtonXP(); this.panelFill = new System.Windows.Forms.Panel(); this.m_printPreviewControl1 = new System.Windows.Forms.PrintPreviewControl(); this.m_printDocument1 = new System.Drawing.Printing.PrintDocument(); this.m_printPreviewDialog1 = new System.Windows.Forms.PrintPreviewDialog(); this.printDialog1 = new System.Windows.Forms.PrintDialog(); this.panelTop.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit(); this.panelFill.SuspendLayout(); this.SuspendLayout(); // // panelTop // this.panelTop.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panelTop.Controls.Add(this.m_cmdOutExcel); this.panelTop.Controls.Add(this.label5); this.panelTop.Controls.Add(this.numericUpDown1); this.panelTop.Controls.Add(this.buttonXP2); this.panelTop.Controls.Add(this.m_cmdQuery); this.panelTop.Controls.Add(this.m_cboOperator); this.panelTop.Controls.Add(this.label4); this.panelTop.Controls.Add(this.m_cboIdentity); this.panelTop.Controls.Add(this.label3); this.panelTop.Controls.Add(this.m_dateTimePickerEnd); this.panelTop.Controls.Add(this.label2); this.panelTop.Controls.Add(this.m_dateTimePickerBegin); this.panelTop.Controls.Add(this.label1); this.panelTop.Controls.Add(this.m_cmdExit); this.panelTop.Dock = System.Windows.Forms.DockStyle.Top; this.panelTop.Location = new System.Drawing.Point(0, 0); this.panelTop.Name = "panelTop"; this.panelTop.Size = new System.Drawing.Size(1000, 56); this.panelTop.TabIndex = 0; // // m_cmdOutExcel // this.m_cmdOutExcel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); this.m_cmdOutExcel.DefaultScheme = true; this.m_cmdOutExcel.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdOutExcel.Hint = ""; this.m_cmdOutExcel.Location = new System.Drawing.Point(784, 11); this.m_cmdOutExcel.Name = "m_cmdOutExcel"; this.m_cmdOutExcel.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdOutExcel.Size = new System.Drawing.Size(80, 32); this.m_cmdOutExcel.TabIndex = 75; this.m_cmdOutExcel.Text = "导出(&O)"; this.m_cmdOutExcel.Click += new System.EventHandler(this.m_cmdOutExcel_Click); // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(944, 18); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(42, 14); this.label5.TabIndex = 74; this.label5.Text = "页码:"; // // numericUpDown1 // this.numericUpDown1.Location = new System.Drawing.Point(984, 16); this.numericUpDown1.Maximum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Minimum = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.Name = "numericUpDown1"; this.numericUpDown1.Size = new System.Drawing.Size(40, 23); this.numericUpDown1.TabIndex = 73; this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.numericUpDown1.Value = new decimal(new int[] { 1, 0, 0, 0 }); this.numericUpDown1.ValueChanged += new System.EventHandler(this.numericUpDown1_ValueChanged); // // buttonXP2 // this.buttonXP2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); this.buttonXP2.DefaultScheme = true; this.buttonXP2.DialogResult = System.Windows.Forms.DialogResult.None; this.buttonXP2.Hint = ""; this.buttonXP2.Location = new System.Drawing.Point(704, 11); this.buttonXP2.Name = "buttonXP2"; this.buttonXP2.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.buttonXP2.Size = new System.Drawing.Size(80, 32); this.buttonXP2.TabIndex = 72; this.buttonXP2.Text = "打印(&F4)"; this.buttonXP2.Click += new System.EventHandler(this.buttonXP2_Click); // // m_cmdQuery // this.m_cmdQuery.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); this.m_cmdQuery.DefaultScheme = true; this.m_cmdQuery.DialogResult = System.Windows.Forms.DialogResult.None; this.m_cmdQuery.Hint = ""; this.m_cmdQuery.Location = new System.Drawing.Point(624, 11); this.m_cmdQuery.Name = "m_cmdQuery"; this.m_cmdQuery.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdQuery.Size = new System.Drawing.Size(80, 32); this.m_cmdQuery.TabIndex = 60; this.m_cmdQuery.Text = "查询(&F6)"; this.m_cmdQuery.Click += new System.EventHandler(this.m_cmdQuery_Click); // // m_cboOperator // this.m_cboOperator.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cboOperator.Location = new System.Drawing.Point(528, 16); this.m_cboOperator.Name = "m_cboOperator"; this.m_cboOperator.Size = new System.Drawing.Size(88, 22); this.m_cboOperator.TabIndex = 40; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(472, 18); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(56, 14); this.label4.TabIndex = 8; this.label4.Text = "操作员:"; // // m_cboIdentity // this.m_cboIdentity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cboIdentity.Location = new System.Drawing.Point(384, 16); this.m_cboIdentity.Name = "m_cboIdentity"; this.m_cboIdentity.Size = new System.Drawing.Size(88, 22); this.m_cboIdentity.TabIndex = 30; // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(344, 18); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(42, 14); this.label3.TabIndex = 6; this.label3.Text = "身份:"; this.label3.Click += new System.EventHandler(this.label3_Click); // // m_dateTimePickerEnd // this.m_dateTimePickerEnd.Location = new System.Drawing.Point(216, 16); this.m_dateTimePickerEnd.Name = "m_dateTimePickerEnd"; this.m_dateTimePickerEnd.Size = new System.Drawing.Size(120, 23); this.m_dateTimePickerEnd.TabIndex = 20; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(200, 18); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(21, 14); this.label2.TabIndex = 4; this.label2.Text = "至"; // // m_dateTimePickerBegin // this.m_dateTimePickerBegin.Location = new System.Drawing.Point(80, 16); this.m_dateTimePickerBegin.Name = "m_dateTimePickerBegin"; this.m_dateTimePickerBegin.Size = new System.Drawing.Size(120, 23); this.m_dateTimePickerBegin.TabIndex = 0; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(8, 18); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(70, 14); this.label1.TabIndex = 2; this.label1.Text = "统计时期:"; // // m_cmdExit // this.m_cmdExit.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(212)))), ((int)(((byte)(208)))), ((int)(((byte)(200))))); this.m_cmdExit.DefaultScheme = true; this.m_cmdExit.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.m_cmdExit.Hint = ""; this.m_cmdExit.Location = new System.Drawing.Point(864, 11); this.m_cmdExit.Name = "m_cmdExit"; this.m_cmdExit.Scheme = PinkieControls.ButtonXP.Schemes.Blue; this.m_cmdExit.Size = new System.Drawing.Size(80, 32); this.m_cmdExit.TabIndex = 70; this.m_cmdExit.Text = "退出(&ESC)"; this.m_cmdExit.Click += new System.EventHandler(this.m_cmdExit_Click); // // panelFill // this.panelFill.Controls.Add(this.m_printPreviewControl1); this.panelFill.Dock = System.Windows.Forms.DockStyle.Fill; this.panelFill.Location = new System.Drawing.Point(0, 56); this.panelFill.Name = "panelFill"; this.panelFill.Size = new System.Drawing.Size(1000, 469); this.panelFill.TabIndex = 1; // // m_printPreviewControl1 // this.m_printPreviewControl1.AutoZoom = false; this.m_printPreviewControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.m_printPreviewControl1.Document = this.m_printDocument1; this.m_printPreviewControl1.Location = new System.Drawing.Point(0, 0); this.m_printPreviewControl1.Name = "m_printPreviewControl1"; this.m_printPreviewControl1.Size = new System.Drawing.Size(1000, 469); this.m_printPreviewControl1.TabIndex = 2; this.m_printPreviewControl1.Zoom = 1; // // m_printDocument1 // this.m_printDocument1.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.m_printDocument1_PrintPage); this.m_printDocument1.EndPrint += new System.Drawing.Printing.PrintEventHandler(this.m_printDocument1_EndPrint); this.m_printDocument1.BeginPrint += new System.Drawing.Printing.PrintEventHandler(this.m_printDocument1_BeginPrint); // // m_printPreviewDialog1 // this.m_printPreviewDialog1.AutoScrollMargin = new System.Drawing.Size(0, 0); this.m_printPreviewDialog1.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.m_printPreviewDialog1.ClientSize = new System.Drawing.Size(400, 300); this.m_printPreviewDialog1.Document = this.m_printDocument1; this.m_printPreviewDialog1.Enabled = true; this.m_printPreviewDialog1.Icon = ((System.Drawing.Icon)(resources.GetObject("m_printPreviewDialog1.Icon"))); this.m_printPreviewDialog1.Name = "m_printPreviewDialog1"; this.m_printPreviewDialog1.Visible = false; // // printDialog1 // this.printDialog1.AllowCurrentPage = true; this.printDialog1.AllowSelection = true; this.printDialog1.AllowSomePages = true; this.printDialog1.Document = this.m_printDocument1; this.printDialog1.UseEXDialog = true; // // frmOutpatientChargeIdetityPrint // this.AutoScaleBaseSize = new System.Drawing.Size(7, 16); this.CancelButton = this.m_cmdExit; this.ClientSize = new System.Drawing.Size(1000, 525); this.Controls.Add(this.panelFill); this.Controls.Add(this.panelTop); this.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Name = "frmOutpatientChargeIdetityPrint"; this.Text = "门诊收费按身份分类统计报表"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.frmOutpatientChargeIdetityPrint_Load); this.panelTop.ResumeLayout(false); this.panelTop.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit(); this.panelFill.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent(){ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormPrntScrn)); this.label1 = new System.Windows.Forms.Label(); this.printPreviewControl2 = new System.Windows.Forms.PrintPreviewControl(); this.pd2 = new System.Drawing.Printing.PrintDocument(); this.butCancel = new OpenDental.UI.Button(); this.saveFileDialog2 = new System.Windows.Forms.SaveFileDialog(); this.textMouseX = new System.Windows.Forms.TextBox(); this.textMouseY = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.butPrint = new OpenDental.UI.Button(); this.butZoomIn = new OpenDental.UI.Button(); this.butZoomOut = new OpenDental.UI.Button(); this.butExport = new OpenDental.UI.Button(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(190,100); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(416,23); this.label1.TabIndex = 0; this.label1.Text = "Once this is functioning, you can preview the image here before printing"; // // printPreviewControl2 // this.printPreviewControl2.AutoZoom = false; this.printPreviewControl2.Location = new System.Drawing.Point(0,0); this.printPreviewControl2.Name = "printPreviewControl2"; this.printPreviewControl2.Size = new System.Drawing.Size(842,538); this.printPreviewControl2.TabIndex = 1; this.printPreviewControl2.Zoom = 1; this.printPreviewControl2.MouseMove += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseMove); this.printPreviewControl2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseDown); this.printPreviewControl2.MouseUp += new System.Windows.Forms.MouseEventHandler(this.printPreviewControl2_MouseUp); // // pd2 // this.pd2.PrintPage += new System.Drawing.Printing.PrintPageEventHandler(this.pd2_PrintPage); // // butCancel // this.butCancel.AdjustImageLocation = new System.Drawing.Point(0,0); this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.Autosize = true; this.butCancel.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butCancel.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butCancel.CornerRadius = 4F; this.butCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.butCancel.Location = new System.Drawing.Point(884,759); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75,26); this.butCancel.TabIndex = 4; this.butCancel.Text = "&Cancel"; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // textMouseX // this.textMouseX.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textMouseX.Location = new System.Drawing.Point(274,763); this.textMouseX.Name = "textMouseX"; this.textMouseX.Size = new System.Drawing.Size(56,20); this.textMouseX.TabIndex = 7; this.textMouseX.Visible = false; // // textMouseY // this.textMouseY.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.textMouseY.Location = new System.Drawing.Point(394,763); this.textMouseY.Name = "textMouseY"; this.textMouseY.Size = new System.Drawing.Size(56,20); this.textMouseY.TabIndex = 8; this.textMouseY.Visible = false; // // label2 // this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label2.Location = new System.Drawing.Point(209,764); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(63,17); this.label2.TabIndex = 11; this.label2.Text = "Mouse X"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label2.Visible = false; // // label3 // this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.label3.Location = new System.Drawing.Point(334,763); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(56,20); this.label3.TabIndex = 12; this.label3.Text = "MouseY"; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.label3.Visible = false; // // butPrint // this.butPrint.AdjustImageLocation = new System.Drawing.Point(0,0); this.butPrint.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butPrint.Autosize = true; this.butPrint.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butPrint.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butPrint.CornerRadius = 4F; this.butPrint.Image = global::OpenDental.Properties.Resources.butPrintSmall; this.butPrint.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butPrint.Location = new System.Drawing.Point(678,759); this.butPrint.Name = "butPrint"; this.butPrint.Size = new System.Drawing.Size(75,26); this.butPrint.TabIndex = 13; this.butPrint.Text = "&Print"; this.butPrint.Click += new System.EventHandler(this.butPrint_Click); // // butZoomIn // this.butZoomIn.AdjustImageLocation = new System.Drawing.Point(0,0); this.butZoomIn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butZoomIn.Autosize = true; this.butZoomIn.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomIn.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomIn.CornerRadius = 4F; this.butZoomIn.Image = global::OpenDental.Properties.Resources.butZoomIn; this.butZoomIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomIn.Location = new System.Drawing.Point(502,759); this.butZoomIn.Name = "butZoomIn"; this.butZoomIn.Size = new System.Drawing.Size(77,26); this.butZoomIn.TabIndex = 14; this.butZoomIn.Text = "&Zoom +"; this.butZoomIn.Click += new System.EventHandler(this.butZoomIn_Click); // // butZoomOut // this.butZoomOut.AdjustImageLocation = new System.Drawing.Point(0,0); this.butZoomOut.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butZoomOut.Autosize = true; this.butZoomOut.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butZoomOut.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butZoomOut.CornerRadius = 4F; this.butZoomOut.Image = global::OpenDental.Properties.Resources.butZoomOut; this.butZoomOut.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butZoomOut.Location = new System.Drawing.Point(591,759); this.butZoomOut.Name = "butZoomOut"; this.butZoomOut.Size = new System.Drawing.Size(75,26); this.butZoomOut.TabIndex = 15; this.butZoomOut.Text = "Zoom -"; this.butZoomOut.Click += new System.EventHandler(this.butZoomOut_Click); // // butExport // this.butExport.AdjustImageLocation = new System.Drawing.Point(0,0); this.butExport.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butExport.Autosize = true; this.butExport.BtnShape = OpenDental.UI.enumType.BtnShape.Rectangle; this.butExport.BtnStyle = OpenDental.UI.enumType.XPStyle.Silver; this.butExport.CornerRadius = 4F; this.butExport.Image = global::OpenDental.Properties.Resources.butExport; this.butExport.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; this.butExport.Location = new System.Drawing.Point(765,759); this.butExport.Name = "butExport"; this.butExport.Size = new System.Drawing.Size(75,26); this.butExport.TabIndex = 16; this.butExport.Text = "&Export"; this.butExport.Click += new System.EventHandler(this.butExport_Click); // // FormPrntScrn // this.AcceptButton = this.butPrint; this.AutoScaleBaseSize = new System.Drawing.Size(5,13); this.CancelButton = this.butCancel; this.ClientSize = new System.Drawing.Size(976,792); this.Controls.Add(this.butExport); this.Controls.Add(this.butZoomOut); this.Controls.Add(this.butZoomIn); this.Controls.Add(this.butPrint); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.textMouseY); this.Controls.Add(this.textMouseX); this.Controls.Add(this.butCancel); this.Controls.Add(this.printPreviewControl2); this.Controls.Add(this.label1); this.Cursor = System.Windows.Forms.Cursors.Default; this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormPrntScrn"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Prnt Scrn Tool"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.FormPrntScrn_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormPrntScrn_Layout); this.ResumeLayout(false); this.PerformLayout(); }
public abstract void PrintPreviewControlPaint(PaintEventArgs pe, PrintPreviewControl preview, Size page_image_size);
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormTPsign)); this.imageListMain = new System.Windows.Forms.ImageList(this.components); this.textTypeSigPractice = new System.Windows.Forms.TextBox(); this.labelTypeSigPractice = new System.Windows.Forms.Label(); this.signatureBoxWrapperPractice = new OpenDental.UI.SignatureBoxWrapper(); this.labelSigPractice = new System.Windows.Forms.Label(); this.panelSig = new System.Windows.Forms.Panel(); this.textTypeSig = new System.Windows.Forms.TextBox(); this.labelTypeSig = new System.Windows.Forms.Label(); this.signatureBoxWrapper = new OpenDental.UI.SignatureBoxWrapper(); this.butCancel = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.labelSig = new System.Windows.Forms.Label(); this.ToolBarMain = new OpenDental.UI.ODToolBar(); this.previewContr = new System.Windows.Forms.PrintPreviewControl(); this.panelSig.SuspendLayout(); this.SuspendLayout(); // // imageListMain // this.imageListMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListMain.ImageStream"))); this.imageListMain.TransparentColor = System.Drawing.Color.Transparent; this.imageListMain.Images.SetKeyName(0, ""); this.imageListMain.Images.SetKeyName(1, ""); this.imageListMain.Images.SetKeyName(2, ""); // // textTypeSigPractice // this.textTypeSigPractice.Location = new System.Drawing.Point(651, 86); this.textTypeSigPractice.Name = "textTypeSigPractice"; this.textTypeSigPractice.Size = new System.Drawing.Size(331, 20); this.textTypeSigPractice.TabIndex = 228; this.textTypeSigPractice.Visible = false; this.textTypeSigPractice.TextChanged += new System.EventHandler(this.textTypeSigPractice_TextChanged); // // labelTypeSigPractice // this.labelTypeSigPractice.Location = new System.Drawing.Point(502, 87); this.labelTypeSigPractice.Name = "labelTypeSigPractice"; this.labelTypeSigPractice.Size = new System.Drawing.Size(147, 17); this.labelTypeSigPractice.TabIndex = 229; this.labelTypeSigPractice.Text = "Type name here"; this.labelTypeSigPractice.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelTypeSigPractice.Visible = false; // // signatureBoxWrapperPractice // this.signatureBoxWrapperPractice.BackColor = System.Drawing.SystemColors.ControlDark; this.signatureBoxWrapperPractice.Location = new System.Drawing.Point(651, 3); this.signatureBoxWrapperPractice.Name = "signatureBoxWrapperPractice"; this.signatureBoxWrapperPractice.SignatureMode = OpenDental.UI.SignatureBoxWrapper.SigMode.Default; this.signatureBoxWrapperPractice.Size = new System.Drawing.Size(331, 79); this.signatureBoxWrapperPractice.TabIndex = 182; this.signatureBoxWrapperPractice.UserSig = null; this.signatureBoxWrapperPractice.Visible = false; this.signatureBoxWrapperPractice.SignatureChanged += new System.EventHandler(this.signatureBoxWrapperPractice_SignatureChanged); // // labelSigPractice // this.labelSigPractice.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSigPractice.Location = new System.Drawing.Point(496, 4); this.labelSigPractice.Name = "labelSigPractice"; this.labelSigPractice.Size = new System.Drawing.Size(153, 41); this.labelSigPractice.TabIndex = 92; this.labelSigPractice.Text = "Practice Sign Here --->"; this.labelSigPractice.TextAlign = System.Drawing.ContentAlignment.TopRight; this.labelSigPractice.Visible = false; // // panelSig // this.panelSig.Controls.Add(this.textTypeSigPractice); this.panelSig.Controls.Add(this.textTypeSig); this.panelSig.Controls.Add(this.labelTypeSigPractice); this.panelSig.Controls.Add(this.labelTypeSig); this.panelSig.Controls.Add(this.signatureBoxWrapperPractice); this.panelSig.Controls.Add(this.labelSigPractice); this.panelSig.Controls.Add(this.signatureBoxWrapper); this.panelSig.Controls.Add(this.butCancel); this.panelSig.Controls.Add(this.butOK); this.panelSig.Controls.Add(this.labelSig); this.panelSig.Dock = System.Windows.Forms.DockStyle.Bottom; this.panelSig.Location = new System.Drawing.Point(0, 581); this.panelSig.Name = "panelSig"; this.panelSig.Size = new System.Drawing.Size(1159, 115); this.panelSig.TabIndex = 92; // // textTypeSig // this.textTypeSig.Location = new System.Drawing.Point(162, 88); this.textTypeSig.Name = "textTypeSig"; this.textTypeSig.Size = new System.Drawing.Size(331, 20); this.textTypeSig.TabIndex = 230; this.textTypeSig.Visible = false; this.textTypeSig.TextChanged += new System.EventHandler(this.textTypeSig_TextChanged); // // labelTypeSig // this.labelTypeSig.Location = new System.Drawing.Point(13, 89); this.labelTypeSig.Name = "labelTypeSig"; this.labelTypeSig.Size = new System.Drawing.Size(147, 17); this.labelTypeSig.TabIndex = 231; this.labelTypeSig.Text = "Type name here"; this.labelTypeSig.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.labelTypeSig.Visible = false; // // signatureBoxWrapper // this.signatureBoxWrapper.BackColor = System.Drawing.SystemColors.ControlDark; this.signatureBoxWrapper.Location = new System.Drawing.Point(162, 3); this.signatureBoxWrapper.Name = "signatureBoxWrapper"; this.signatureBoxWrapper.SignatureMode = OpenDental.UI.SignatureBoxWrapper.SigMode.Default; this.signatureBoxWrapper.Size = new System.Drawing.Size(331, 79); this.signatureBoxWrapper.TabIndex = 182; this.signatureBoxWrapper.UserSig = null; this.signatureBoxWrapper.SignatureChanged += new System.EventHandler(this.signatureBoxWrapper_SignatureChanged); // // butCancel // this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butCancel.Location = new System.Drawing.Point(1012, 70); this.butCancel.Name = "butCancel"; this.butCancel.Size = new System.Drawing.Size(75, 25); this.butCancel.TabIndex = 94; this.butCancel.Text = "Cancel"; this.butCancel.UseVisualStyleBackColor = true; this.butCancel.Click += new System.EventHandler(this.butCancel_Click); // // butOK // this.butOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.butOK.Location = new System.Drawing.Point(1012, 38); this.butOK.Name = "butOK"; this.butOK.Size = new System.Drawing.Size(75, 25); this.butOK.TabIndex = 93; this.butOK.Text = "OK"; this.butOK.UseVisualStyleBackColor = true; this.butOK.Click += new System.EventHandler(this.butOK_Click); // // labelSig // this.labelSig.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelSig.Location = new System.Drawing.Point(7, 4); this.labelSig.Name = "labelSig"; this.labelSig.Size = new System.Drawing.Size(153, 41); this.labelSig.TabIndex = 92; this.labelSig.Text = "Please Sign Here --->"; this.labelSig.TextAlign = System.Drawing.ContentAlignment.TopRight; // // ToolBarMain // this.ToolBarMain.Dock = System.Windows.Forms.DockStyle.Top; this.ToolBarMain.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F); this.ToolBarMain.ImageList = this.imageListMain; this.ToolBarMain.Location = new System.Drawing.Point(0, 0); this.ToolBarMain.Name = "ToolBarMain"; this.ToolBarMain.Size = new System.Drawing.Size(1159, 25); this.ToolBarMain.TabIndex = 5; this.ToolBarMain.ButtonClick += new OpenDental.UI.ODToolBarButtonClickEventHandler(this.ToolBarMain_ButtonClick); // // previewContr // this.previewContr.AutoZoom = false; this.previewContr.Location = new System.Drawing.Point(10, 41); this.previewContr.Name = "previewContr"; this.previewContr.Size = new System.Drawing.Size(806, 423); this.previewContr.TabIndex = 6; // // FormTPsign // this.ClientSize = new System.Drawing.Size(1099, 696); this.Controls.Add(this.panelSig); this.Controls.Add(this.ToolBarMain); this.Controls.Add(this.previewContr); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "FormTPsign"; this.Text = "Report"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FormTPsign_FormClosing); this.Load += new System.EventHandler(this.FormTPsign_Load); this.Layout += new System.Windows.Forms.LayoutEventHandler(this.FormReport_Layout); this.panelSig.ResumeLayout(false); this.panelSig.PerformLayout(); this.ResumeLayout(false); }