public static void CreatePdfPage(Sheet sheet, PdfPage page) { page.Width = p(sheet.Width); //XUnit.FromInch((double)sheet.Width/100); //new XUnit((double)sheet.Width/100,XGraphicsUnit.Inch); page.Height = p(sheet.Height); //new XUnit((double)sheet.Height/100,XGraphicsUnit.Inch); if (sheet.IsLandscape) { page.Orientation = PageOrientation.Landscape; } XGraphics g = XGraphics.FromPdfPage(page); g.SmoothingMode = XSmoothingMode.HighQuality; //g.PageUnit=XGraphicsUnit. //wish they had pixel //XTextFormatter tf = new XTextFormatter(g);//needed for text wrap //tf.Alignment=XParagraphAlignment.Left; //pd.DefaultPageSettings.Landscape= //already done?:SheetUtil.CalculateHeights(sheet,g);//this is here because of easy access to g. XFont xfont; XFontStyle xfontstyle; //first, draw images-------------------------------------------------------------------------------------- foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.Image) { continue; } string filePathAndName = ODFileUtils.CombinePaths(SheetUtil.GetImagePath(), field.FieldName); Bitmap bitmapOriginal = null; if (field.FieldName == "Patient Info.gif") { bitmapOriginal = Properties.Resources.Patient_Info; } else if (File.Exists(filePathAndName)) { bitmapOriginal = new Bitmap(filePathAndName); } else { continue; } Bitmap bitmapResampled = (Bitmap)bitmapOriginal.Clone(); if (bitmapOriginal.HorizontalResolution != 96 || bitmapOriginal.VerticalResolution != 96) //to avoid slowdown for other pdfs //The scaling on the XGraphics.DrawImage() function causes unreadable output unless the image is in 96 DPI native format. //We use GDI here first to convert the image to the correct size and DPI, then pass the second image to XGraphics.DrawImage(). { bitmapResampled.Dispose(); bitmapResampled = null; bitmapResampled = new Bitmap(field.Width, field.Height); Graphics gr = Graphics.FromImage(bitmapResampled); gr.DrawImage(bitmapOriginal, 0, 0, field.Width, field.Height); gr.Dispose(); } g.DrawImage(bitmapResampled, p(field.XPos), p(field.YPos), p(field.Width), p(field.Height)); bitmapResampled.Dispose(); bitmapResampled = null; bitmapOriginal.Dispose(); bitmapOriginal = null; } //then, drawings-------------------------------------------------------------------------------------------- XPen pen = new XPen(XColors.Black, p(2)); string[] pointStr; List <Point> points; Point point; string[] xy; foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.Drawing) { continue; } pointStr = field.FieldValue.Split(';'); points = new List <Point>(); for (int j = 0; j < pointStr.Length; j++) { xy = pointStr[j].Split(','); if (xy.Length == 2) { point = new Point(PIn.Int(xy[0]), PIn.Int(xy[1])); points.Add(point); } } for (int i = 1; i < points.Count; i++) { g.DrawLine(pen, p(points[i - 1].X), p(points[i - 1].Y), p(points[i].X), p(points[i].Y)); } } //then, rectangles and lines---------------------------------------------------------------------------------- XPen pen2 = new XPen(XColors.Black, p(1)); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType == SheetFieldType.Rectangle) { g.DrawRectangle(pen2, p(field.XPos), p(field.YPos), p(field.Width), p(field.Height)); } if (field.FieldType == SheetFieldType.Line) { g.DrawLine(pen2, p(field.XPos), p(field.YPos), p(field.XPos + field.Width), p(field.YPos + field.Height)); } } //then, draw text-------------------------------------------------------------------------------------------- Bitmap doubleBuffer = new Bitmap(sheet.Width, sheet.Height); Graphics gfx = Graphics.FromImage(doubleBuffer); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.InputField && field.FieldType != SheetFieldType.OutputText && field.FieldType != SheetFieldType.StaticText) { continue; } xfontstyle = XFontStyle.Regular; if (field.FontIsBold) { xfontstyle = XFontStyle.Bold; } xfont = new XFont(field.FontName, field.FontSize, xfontstyle); //xfont=new XFont(field.FontName,field.FontSize,xfontstyle); //Rectangle rect=new Rectangle((int)p(field.XPos),(int)p(field.YPos),(int)p(field.Width),(int)p(field.Height)); XRect xrect = new XRect(p(field.XPos), p(field.YPos), p(field.Width), p(field.Height)); //XStringFormat format=new XStringFormat(); //tf.DrawString(field.FieldValue,font,XBrushes.Black,xrect,XStringFormats.TopLeft); GraphicsHelper.DrawStringX(g, gfx, 1d / p(1), field.FieldValue, xfont, XBrushes.Black, xrect); } gfx.Dispose(); //then, checkboxes---------------------------------------------------------------------------------- XPen pen3 = new XPen(XColors.Black, p(1.6f)); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.CheckBox) { continue; } if (field.FieldValue == "X") { g.DrawLine(pen3, p(field.XPos), p(field.YPos), p(field.XPos + field.Width), p(field.YPos + field.Height)); g.DrawLine(pen3, p(field.XPos + field.Width), p(field.YPos), p(field.XPos), p(field.YPos + field.Height)); } } //then signature boxes---------------------------------------------------------------------- foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.SigBox) { continue; } SignatureBoxWrapper wrapper = new SignatureBoxWrapper(); wrapper.Width = field.Width; wrapper.Height = field.Height; if (field.FieldValue.Length > 0) //a signature is present { bool sigIsTopaz = false; if (field.FieldValue[0] == '1') { sigIsTopaz = true; } string signature = ""; if (field.FieldValue.Length > 1) { signature = field.FieldValue.Substring(1); } string keyData = Sheets.GetSignatureKey(sheet); wrapper.FillSignature(sigIsTopaz, keyData, signature); } XImage sigBitmap = XImage.FromGdiPlusImage(wrapper.GetSigImage()); g.DrawImage(sigBitmap, p(field.XPos), p(field.YPos), p(field.Width - 2), p(field.Height - 2)); } }
/// <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); }
private static void pd_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e) { Graphics g = e.Graphics; g.SmoothingMode = SmoothingMode.HighQuality; Sheet sheet = SheetList[sheetsPrinted]; SheetUtil.CalculateHeights(sheet, g); //this is here because of easy access to g. Font font; FontStyle fontstyle; //first, draw images------------------------------------------------------------------------------------ foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.Image) { continue; } string filePathAndName = ODFileUtils.CombinePaths(SheetUtil.GetImagePath(), field.FieldName); Image img = null; //js consider switching this from an image to a bitmap if (field.FieldName == "Patient Info.gif") { img = Properties.Resources.Patient_Info; } else if (File.Exists(filePathAndName)) { img = Image.FromFile(filePathAndName); } else { continue; } g.DrawImage(img, field.XPos, field.YPos, field.Width, field.Height); img.Dispose(); img = null; } //then, drawings-------------------------------------------------------------------------------------------- Pen pen = new Pen(Brushes.Black, 2f); string[] pointStr; List <Point> points; Point point; string[] xy; foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.Drawing) { continue; } pointStr = field.FieldValue.Split(';'); points = new List <Point>(); for (int p = 0; p < pointStr.Length; p++) { xy = pointStr[p].Split(','); if (xy.Length == 2) { point = new Point(PIn.Int(xy[0]), PIn.Int(xy[1])); points.Add(point); } } for (int i = 1; i < points.Count; i++) { g.DrawLine(pen, points[i - 1].X, points[i - 1].Y, points[i].X, points[i].Y); } } //then, rectangles and lines---------------------------------------------------------------------------------- Pen pen2 = new Pen(Brushes.Black, 1f); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType == SheetFieldType.Rectangle) { g.DrawRectangle(pen2, field.XPos, field.YPos, field.Width, field.Height); } if (field.FieldType == SheetFieldType.Line) { g.DrawLine(pen2, field.XPos, field.YPos, field.XPos + field.Width, field.YPos + field.Height); } } //then, draw text----------------------------------------------------------------------------------------------- Bitmap doubleBuffer = new Bitmap(sheet.Width, sheet.Height); Graphics gfx = Graphics.FromImage(doubleBuffer); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.InputField && field.FieldType != SheetFieldType.OutputText && field.FieldType != SheetFieldType.StaticText) { continue; } fontstyle = FontStyle.Regular; if (field.FontIsBold) { fontstyle = FontStyle.Bold; } font = new Font(field.FontName, field.FontSize, fontstyle); Plugins.HookAddCode(null, "SheetPrinting.pd_PrintPage_drawFieldLoop", field); GraphicsHelper.DrawString(g, gfx, field.FieldValue, font, Brushes.Black, field.Bounds); //g.DrawString(field.FieldValue,font,Brushes.Black,field.BoundsF); } gfx.Dispose(); //then, checkboxes---------------------------------------------------------------------------------- Pen pen3 = new Pen(Brushes.Black, 1.6f); foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.CheckBox) { continue; } if (field.FieldValue == "X") { g.DrawLine(pen3, field.XPos, field.YPos, field.XPos + field.Width, field.YPos + field.Height); g.DrawLine(pen3, field.XPos + field.Width, field.YPos, field.XPos, field.YPos + field.Height); } } //then signature boxes---------------------------------------------------------------------- foreach (SheetField field in sheet.SheetFields) { if (field.FieldType != SheetFieldType.SigBox) { continue; } SignatureBoxWrapper wrapper = new SignatureBoxWrapper(); wrapper.Width = field.Width; wrapper.Height = field.Height; if (field.FieldValue.Length > 0) //a signature is present { bool sigIsTopaz = false; if (field.FieldValue[0] == '1') { sigIsTopaz = true; } string signature = ""; if (field.FieldValue.Length > 1) { signature = field.FieldValue.Substring(1); } string keyData = Sheets.GetSignatureKey(sheet); wrapper.FillSignature(sigIsTopaz, keyData, signature); } Bitmap sigBitmap = wrapper.GetSigImage(); g.DrawImage(sigBitmap, field.XPos, field.YPos, field.Width - 2, field.Height - 2); } g.Dispose(); //no logic yet for multiple pages on one sheet. sheetsPrinted++; //heightsCalculated=false; if (sheetsPrinted < SheetList.Count) { e.HasMorePages = true; } else { e.HasMorePages = false; sheetsPrinted = 0; } }
/// <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.signatureBoxWrapper = new OpenDental.UI.SignatureBoxWrapper(); this.butCancel = new OpenDental.UI.Button(); this.butOK = new OpenDental.UI.Button(); this.label1 = new System.Windows.Forms.Label(); 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.signatureBoxWrapper); this.panelSig.Controls.Add(this.butCancel); this.panelSig.Controls.Add(this.butOK); this.panelSig.Controls.Add(this.label1); 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; // // signatureBoxWrapper // this.signatureBoxWrapper.BackColor = System.Drawing.SystemColors.ControlDark; this.signatureBoxWrapper.Location = new System.Drawing.Point(162, 3); this.signatureBoxWrapper.Name = "signatureBoxWrapper"; this.signatureBoxWrapper.Size = new System.Drawing.Size(362, 79); this.signatureBoxWrapper.TabIndex = 182; this.signatureBoxWrapper.SignatureChanged += new System.EventHandler(this.signatureBoxWrapper_SignatureChanged); // // 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; // // 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.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.ResumeLayout(false); }