C2021-010: Print using standard pagination rules by removing trailing hard returns, spaces & manual page breaks

This commit is contained in:
Kathy Ruffing 2021-02-23 14:51:49 +00:00
parent 6499c9a23c
commit b679829508
11 changed files with 421 additions and 207 deletions

View File

@ -66,7 +66,7 @@ namespace VEPROMS
this.cbxDebug = new System.Windows.Forms.CheckBox();
this.cbxOrPgBrk = new System.Windows.Forms.CheckBox();
this.superTooltip1 = new DevComponents.DotNetBar.SuperTooltip();
this.cbxRemoveManualPageBreaks = new System.Windows.Forms.CheckBox();
this.cbxRemoveTrailing = new System.Windows.Forms.CheckBox();
this.labelX5 = new DevComponents.DotNetBar.LabelX();
this.ppGpbxUserSpecTxt = new DevComponents.DotNetBar.Controls.GroupPanel();
this.label14 = new System.Windows.Forms.Label();
@ -81,6 +81,7 @@ namespace VEPROMS
this.labelX1 = new DevComponents.DotNetBar.LabelX();
this.labelX4 = new DevComponents.DotNetBar.LabelX();
this.btnMergePDFs = new DevComponents.DotNetBar.ButtonX();
this.cbxRemoveManualPgBrk = new System.Windows.Forms.CheckBox();
this.cbxGenerateConActSum = new System.Windows.Forms.CheckBox();
this.ppGpbxUserSpecCB = new DevComponents.DotNetBar.Controls.GroupPanel();
this.lblCbTxtType = new System.Windows.Forms.Label();
@ -92,6 +93,7 @@ namespace VEPROMS
this.swtbtnPDFLinks = new DevComponents.DotNetBar.Controls.SwitchButton();
this.expandableSplitter1 = new DevComponents.DotNetBar.ExpandableSplitter();
this.panelEx2 = new DevComponents.DotNetBar.PanelEx();
this.groupPag = new DevComponents.DotNetBar.Controls.GroupPanel();
this.expPrnSetting = new DevComponents.DotNetBar.ExpandablePanel();
this.ppGpDuplex = new DevComponents.DotNetBar.Controls.GroupPanel();
this.tbBlankPage = new DevComponents.DotNetBar.Controls.TextBoxX();
@ -103,6 +105,7 @@ namespace VEPROMS
this.ppGpbxUserSpecTxt.SuspendLayout();
this.ppGpbxUserSpecCB.SuspendLayout();
this.panelEx2.SuspendLayout();
this.groupPag.SuspendLayout();
this.expPrnSetting.SuspendLayout();
this.ppGpDuplex.SuspendLayout();
this.SuspendLayout();
@ -113,10 +116,9 @@ namespace VEPROMS
this.btnPdfLocation.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.btnPdfLocation.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnPdfLocation.Image = ((System.Drawing.Image)(resources.GetObject("btnPdfLocation.Image")));
this.btnPdfLocation.Location = new System.Drawing.Point(767, 36);
this.btnPdfLocation.Margin = new System.Windows.Forms.Padding(4);
this.btnPdfLocation.Location = new System.Drawing.Point(575, 29);
this.btnPdfLocation.Name = "btnPdfLocation";
this.btnPdfLocation.Size = new System.Drawing.Size(27, 23);
this.btnPdfLocation.Size = new System.Drawing.Size(20, 19);
this.btnPdfLocation.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.superTooltip1.SetSuperTooltip(this.btnPdfLocation, new DevComponents.DotNetBar.SuperTooltipInfo("PDF Location Change Button", "", "This button will display a dialog allowing you to navigate to the location to pla" +
"ce the PDF for this print session.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
@ -132,10 +134,10 @@ namespace VEPROMS
this.gpnlDebug.Controls.Add(this.cbxDebugText);
this.gpnlDebug.Controls.Add(this.cbxDebugPagination);
this.gpnlDebug.DisabledBackColor = System.Drawing.Color.Empty;
this.gpnlDebug.Location = new System.Drawing.Point(586, 184);
this.gpnlDebug.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.gpnlDebug.Location = new System.Drawing.Point(440, 150);
this.gpnlDebug.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.gpnlDebug.Name = "gpnlDebug";
this.gpnlDebug.Size = new System.Drawing.Size(159, 119);
this.gpnlDebug.Size = new System.Drawing.Size(119, 97);
//
//
//
@ -171,10 +173,10 @@ namespace VEPROMS
//
this.cbxMetaFile.AutoSize = true;
this.cbxMetaFile.BackColor = System.Drawing.Color.Transparent;
this.cbxMetaFile.Location = new System.Drawing.Point(11, 63);
this.cbxMetaFile.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxMetaFile.Location = new System.Drawing.Point(8, 51);
this.cbxMetaFile.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxMetaFile.Name = "cbxMetaFile";
this.cbxMetaFile.Size = new System.Drawing.Size(135, 21);
this.cbxMetaFile.Size = new System.Drawing.Size(104, 17);
this.superTooltip1.SetSuperTooltip(this.cbxMetaFile, new DevComponents.DotNetBar.SuperTooltipInfo("Debug Baseline Testing", "", "Generates a DebugMeta text file in the PDF Location folder. It contains detailed" +
" information of the text being printed.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxMetaFile.TabIndex = 1;
@ -185,10 +187,10 @@ namespace VEPROMS
//
this.cbxDebugText.AutoSize = true;
this.cbxDebugText.BackColor = System.Drawing.Color.Transparent;
this.cbxDebugText.Location = new System.Drawing.Point(11, 37);
this.cbxDebugText.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxDebugText.Location = new System.Drawing.Point(8, 30);
this.cbxDebugText.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxDebugText.Name = "cbxDebugText";
this.cbxDebugText.Size = new System.Drawing.Size(57, 21);
this.cbxDebugText.Size = new System.Drawing.Size(47, 17);
this.superTooltip1.SetSuperTooltip(this.cbxDebugText, new DevComponents.DotNetBar.SuperTooltipInfo("Debug Text", "", "Will generate DebugText text file in the PDF Location folder. It will contain ge" +
"neral debug information generated while printing.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxDebugText.TabIndex = 1;
@ -199,10 +201,10 @@ namespace VEPROMS
//
this.cbxDebugPagination.AutoSize = true;
this.cbxDebugPagination.BackColor = System.Drawing.Color.Transparent;
this.cbxDebugPagination.Location = new System.Drawing.Point(12, 9);
this.cbxDebugPagination.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxDebugPagination.Location = new System.Drawing.Point(9, 7);
this.cbxDebugPagination.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxDebugPagination.Name = "cbxDebugPagination";
this.cbxDebugPagination.Size = new System.Drawing.Size(97, 21);
this.cbxDebugPagination.Size = new System.Drawing.Size(76, 17);
this.superTooltip1.SetSuperTooltip(this.cbxDebugPagination, new DevComponents.DotNetBar.SuperTooltipInfo("Debug Pagination", "", "Generates a DebugPagination text file in the PDF Location folder. It contains de" +
"tailed pagination information.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxDebugPagination.TabIndex = 0;
@ -216,10 +218,10 @@ namespace VEPROMS
this.grpDateSelector.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.grpDateSelector.Controls.Add(this.calDateSelector);
this.grpDateSelector.DisabledBackColor = System.Drawing.Color.Empty;
this.grpDateSelector.Location = new System.Drawing.Point(313, 113);
this.grpDateSelector.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.grpDateSelector.Location = new System.Drawing.Point(235, 92);
this.grpDateSelector.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.grpDateSelector.Name = "grpDateSelector";
this.grpDateSelector.Size = new System.Drawing.Size(260, 190);
this.grpDateSelector.Size = new System.Drawing.Size(195, 154);
//
//
//
@ -275,8 +277,8 @@ namespace VEPROMS
this.calDateSelector.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.calDateSelector.ContainerControlProcessDialogKey = true;
this.calDateSelector.DisplayMonth = new System.DateTime(2010, 8, 1, 0, 0, 0, 0);
this.calDateSelector.Location = new System.Drawing.Point(13, 2);
this.calDateSelector.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.calDateSelector.Location = new System.Drawing.Point(10, 2);
this.calDateSelector.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.calDateSelector.Name = "calDateSelector";
//
//
@ -285,7 +287,7 @@ namespace VEPROMS
this.calDateSelector.NavigationBackgroundStyle.BackColorGradientAngle = 90;
this.calDateSelector.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.calDateSelector.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.calDateSelector.Size = new System.Drawing.Size(226, 156);
this.calDateSelector.Size = new System.Drawing.Size(170, 131);
this.superTooltip1.SetSuperTooltip(this.calDateSelector, new DevComponents.DotNetBar.SuperTooltipInfo("Calandar", "", "Use the arrows to change the month and year.\r\n\r\nSelect the day.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(110, 100)));
this.calDateSelector.TabIndex = 84;
this.calDateSelector.Text = "monthCalendarAdv1";
@ -300,10 +302,9 @@ namespace VEPROMS
//
//
this.pbPDFsStatus.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.pbPDFsStatus.Location = new System.Drawing.Point(27, 436);
this.pbPDFsStatus.Margin = new System.Windows.Forms.Padding(4);
this.pbPDFsStatus.Location = new System.Drawing.Point(14, 314);
this.pbPDFsStatus.Name = "pbPDFsStatus";
this.pbPDFsStatus.Size = new System.Drawing.Size(767, 28);
this.pbPDFsStatus.Size = new System.Drawing.Size(575, 23);
this.pbPDFsStatus.TabIndex = 87;
this.pbPDFsStatus.Text = "Procedures Converted to PDF";
this.pbPDFsStatus.Visible = false;
@ -315,10 +316,10 @@ namespace VEPROMS
//
this.txbReviewDate.Border.Class = "TextBoxBorder";
this.txbReviewDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbReviewDate.Location = new System.Drawing.Point(153, 188);
this.txbReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txbReviewDate.Location = new System.Drawing.Point(115, 153);
this.txbReviewDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txbReviewDate.Name = "txbReviewDate";
this.txbReviewDate.Size = new System.Drawing.Size(121, 22);
this.txbReviewDate.Size = new System.Drawing.Size(91, 20);
this.superTooltip1.SetSuperTooltip(this.txbReviewDate, new DevComponents.DotNetBar.SuperTooltipInfo("Review Date", "", resources.GetString("txbReviewDate.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(203, 140)));
this.txbReviewDate.TabIndex = 83;
this.txbReviewDate.Enter += new System.EventHandler(this.txbReviewDate_Enter);
@ -331,10 +332,10 @@ namespace VEPROMS
//
this.txbRevDate.Border.Class = "TextBoxBorder";
this.txbRevDate.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbRevDate.Location = new System.Drawing.Point(153, 148);
this.txbRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txbRevDate.Location = new System.Drawing.Point(115, 120);
this.txbRevDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txbRevDate.Name = "txbRevDate";
this.txbRevDate.Size = new System.Drawing.Size(121, 22);
this.txbRevDate.Size = new System.Drawing.Size(91, 20);
this.superTooltip1.SetSuperTooltip(this.txbRevDate, new DevComponents.DotNetBar.SuperTooltipInfo("Revision Date", "", resources.GetString("txbRevDate.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(203, 140)));
this.txbRevDate.TabIndex = 82;
this.txbRevDate.Enter += new System.EventHandler(this.txbRevDate_Enter);
@ -349,10 +350,10 @@ namespace VEPROMS
//
this.txbPDFLocation.Border.Class = "TextBoxBorder";
this.txbPDFLocation.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbPDFLocation.Location = new System.Drawing.Point(40, 34);
this.txbPDFLocation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txbPDFLocation.Location = new System.Drawing.Point(30, 28);
this.txbPDFLocation.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txbPDFLocation.Name = "txbPDFLocation";
this.txbPDFLocation.Size = new System.Drawing.Size(705, 22);
this.txbPDFLocation.Size = new System.Drawing.Size(529, 20);
this.superTooltip1.SetSuperTooltip(this.txbPDFLocation, new DevComponents.DotNetBar.SuperTooltipInfo("PDF Location", "", resources.GetString("txbPDFLocation.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(260, 180)));
this.txbPDFLocation.TabIndex = 81;
this.txbPDFLocation.WatermarkText = "PDF Location";
@ -365,10 +366,10 @@ namespace VEPROMS
this.cbxOpenAfterCreate2.BackColor = System.Drawing.Color.Transparent;
this.cbxOpenAfterCreate2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysViewPDFAfterCreate", true));
this.cbxOpenAfterCreate2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxOpenAfterCreate2.Location = new System.Drawing.Point(596, 111);
this.cbxOpenAfterCreate2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxOpenAfterCreate2.Location = new System.Drawing.Point(438, 90);
this.cbxOpenAfterCreate2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxOpenAfterCreate2.Name = "cbxOpenAfterCreate2";
this.cbxOpenAfterCreate2.Size = new System.Drawing.Size(202, 24);
this.cbxOpenAfterCreate2.Size = new System.Drawing.Size(159, 20);
this.superTooltip1.SetSuperTooltip(this.cbxOpenAfterCreate2, new DevComponents.DotNetBar.SuperTooltipInfo("View PDF After Create", "", "PROMS will automatically open the created PDF in your PDF reader/viewer.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxOpenAfterCreate2.TabIndex = 80;
this.cbxOpenAfterCreate2.Text = "View PDF After Create";
@ -386,10 +387,10 @@ namespace VEPROMS
this.cbxOverwritePDF2.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true));
this.cbxOverwritePDF2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxOverwritePDF2.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxOverwritePDF2.Location = new System.Drawing.Point(597, 75);
this.cbxOverwritePDF2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxOverwritePDF2.Location = new System.Drawing.Point(442, 61);
this.cbxOverwritePDF2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxOverwritePDF2.Name = "cbxOverwritePDF2";
this.cbxOverwritePDF2.Size = new System.Drawing.Size(174, 24);
this.cbxOverwritePDF2.Size = new System.Drawing.Size(138, 20);
this.superTooltip1.SetSuperTooltip(this.cbxOverwritePDF2, new DevComponents.DotNetBar.SuperTooltipInfo("Overwrite PDF File", "", "PROMS will automatically replace an existing PDF file of the same name at this PD" +
"F Location", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(160, 80)));
this.cbxOverwritePDF2.TabIndex = 79;
@ -403,10 +404,10 @@ namespace VEPROMS
//
this.txbRevNum.Border.Class = "TextBoxBorder";
this.txbRevNum.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbRevNum.Location = new System.Drawing.Point(153, 108);
this.txbRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.txbRevNum.Location = new System.Drawing.Point(115, 88);
this.txbRevNum.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txbRevNum.Name = "txbRevNum";
this.txbRevNum.Size = new System.Drawing.Size(121, 22);
this.txbRevNum.Size = new System.Drawing.Size(91, 20);
this.superTooltip1.SetSuperTooltip(this.txbRevNum, new DevComponents.DotNetBar.SuperTooltipInfo("Revision Number", "", resources.GetString("txbRevNum.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(203, 130)));
this.txbRevNum.TabIndex = 73;
this.txbRevNum.Leave += new System.EventHandler(this.txbRevNum_Leave);
@ -419,10 +420,10 @@ namespace VEPROMS
//
this.lblReviewDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblReviewDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblReviewDate.Location = new System.Drawing.Point(11, 187);
this.lblReviewDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblReviewDate.Location = new System.Drawing.Point(8, 152);
this.lblReviewDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblReviewDate.Name = "lblReviewDate";
this.lblReviewDate.Size = new System.Drawing.Size(137, 23);
this.lblReviewDate.Size = new System.Drawing.Size(103, 19);
this.lblReviewDate.TabIndex = 72;
this.lblReviewDate.Text = "Review Date";
this.lblReviewDate.TextAlignment = System.Drawing.StringAlignment.Far;
@ -435,10 +436,10 @@ namespace VEPROMS
//
this.lblRevDate.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblRevDate.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblRevDate.Location = new System.Drawing.Point(11, 146);
this.lblRevDate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblRevDate.Location = new System.Drawing.Point(8, 119);
this.lblRevDate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblRevDate.Name = "lblRevDate";
this.lblRevDate.Size = new System.Drawing.Size(137, 23);
this.lblRevDate.Size = new System.Drawing.Size(103, 19);
this.lblRevDate.TabIndex = 71;
this.lblRevDate.Text = "Revision Date";
this.lblRevDate.TextAlignment = System.Drawing.StringAlignment.Far;
@ -451,10 +452,10 @@ namespace VEPROMS
//
this.lblRevNum.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblRevNum.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblRevNum.Location = new System.Drawing.Point(-3, 107);
this.lblRevNum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblRevNum.Location = new System.Drawing.Point(-2, 87);
this.lblRevNum.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblRevNum.Name = "lblRevNum";
this.lblRevNum.Size = new System.Drawing.Size(151, 23);
this.lblRevNum.Size = new System.Drawing.Size(113, 19);
this.lblRevNum.TabIndex = 70;
this.lblRevNum.Text = "Revision Number";
this.lblRevNum.TextAlignment = System.Drawing.StringAlignment.Far;
@ -468,10 +469,9 @@ namespace VEPROMS
//
this.txbPDFName.Border.Class = "TextBoxBorder";
this.txbPDFName.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.txbPDFName.Location = new System.Drawing.Point(155, 75);
this.txbPDFName.Margin = new System.Windows.Forms.Padding(4);
this.txbPDFName.Location = new System.Drawing.Point(116, 61);
this.txbPDFName.Name = "txbPDFName";
this.txbPDFName.Size = new System.Drawing.Size(419, 22);
this.txbPDFName.Size = new System.Drawing.Size(314, 20);
this.superTooltip1.SetSuperTooltip(this.txbPDFName, new DevComponents.DotNetBar.SuperTooltipInfo("PDF Name", "", "By default, PROMS uses the procedure number to make up the PDF file name. The na" +
"me can be changed, for this print session, prior to generating the PDF.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 105)));
this.txbPDFName.TabIndex = 8;
@ -484,10 +484,9 @@ namespace VEPROMS
//
this.lblPDFFileName.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPDFFileName.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPDFFileName.Location = new System.Drawing.Point(15, 71);
this.lblPDFFileName.Margin = new System.Windows.Forms.Padding(4);
this.lblPDFFileName.Location = new System.Drawing.Point(11, 58);
this.lblPDFFileName.Name = "lblPDFFileName";
this.lblPDFFileName.Size = new System.Drawing.Size(133, 23);
this.lblPDFFileName.Size = new System.Drawing.Size(100, 19);
this.lblPDFFileName.TabIndex = 7;
this.lblPDFFileName.Text = "PDF Name";
this.lblPDFFileName.TextAlignment = System.Drawing.StringAlignment.Far;
@ -500,10 +499,10 @@ namespace VEPROMS
//
this.lblPDFLoc.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblPDFLoc.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblPDFLoc.Location = new System.Drawing.Point(3, 10);
this.lblPDFLoc.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblPDFLoc.Location = new System.Drawing.Point(2, 8);
this.lblPDFLoc.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblPDFLoc.Name = "lblPDFLoc";
this.lblPDFLoc.Size = new System.Drawing.Size(115, 23);
this.lblPDFLoc.Size = new System.Drawing.Size(86, 19);
this.lblPDFLoc.TabIndex = 4;
this.lblPDFLoc.Text = "PDF Location";
//
@ -515,10 +514,10 @@ namespace VEPROMS
//
this.lblMultiunitPdfLocation.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblMultiunitPdfLocation.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblMultiunitPdfLocation.Location = new System.Drawing.Point(11, 222);
this.lblMultiunitPdfLocation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblMultiunitPdfLocation.Location = new System.Drawing.Point(8, 180);
this.lblMultiunitPdfLocation.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblMultiunitPdfLocation.Name = "lblMultiunitPdfLocation";
this.lblMultiunitPdfLocation.Size = new System.Drawing.Size(208, 23);
this.lblMultiunitPdfLocation.Size = new System.Drawing.Size(156, 19);
this.lblMultiunitPdfLocation.TabIndex = 108;
this.lblMultiunitPdfLocation.Text = "Multi Unit PDF Location";
this.lblMultiunitPdfLocation.Visible = false;
@ -537,10 +536,10 @@ namespace VEPROMS
this.muLocNumber,
this.muLocText,
this.muLocID});
this.cbxMultiunitPdfLocation.Location = new System.Drawing.Point(59, 250);
this.cbxMultiunitPdfLocation.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxMultiunitPdfLocation.Location = new System.Drawing.Point(44, 203);
this.cbxMultiunitPdfLocation.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxMultiunitPdfLocation.Name = "cbxMultiunitPdfLocation";
this.cbxMultiunitPdfLocation.Size = new System.Drawing.Size(424, 20);
this.cbxMultiunitPdfLocation.Size = new System.Drawing.Size(319, 20);
this.superTooltip1.SetSuperTooltip(this.cbxMultiunitPdfLocation, new DevComponents.DotNetBar.SuperTooltipInfo("Multi Unit PDF Location", "", "A sub folder will be created in the PDF Location based on the selection from this" +
" drop down list.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxMultiunitPdfLocation.TabIndex = 107;
@ -576,10 +575,10 @@ namespace VEPROMS
//
this.lblWatermarkS.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblWatermarkS.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblWatermarkS.Location = new System.Drawing.Point(124, 82);
this.lblWatermarkS.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblWatermarkS.Location = new System.Drawing.Point(93, 67);
this.lblWatermarkS.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblWatermarkS.Name = "lblWatermarkS";
this.lblWatermarkS.Size = new System.Drawing.Size(105, 28);
this.lblWatermarkS.Size = new System.Drawing.Size(79, 23);
this.superTooltip1.SetSuperTooltip(this.lblWatermarkS, new DevComponents.DotNetBar.SuperTooltipInfo("Watermark", "", "Prints the selected watermark on each page of the generated PDF.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(115, 79)));
this.lblWatermarkS.TabIndex = 106;
this.lblWatermarkS.Text = "Watermark";
@ -591,11 +590,11 @@ namespace VEPROMS
this.cbxWaterMark.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.cbxWaterMark.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cbxWaterMark.FormattingEnabled = true;
this.cbxWaterMark.ItemHeight = 21;
this.cbxWaterMark.Location = new System.Drawing.Point(241, 86);
this.cbxWaterMark.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxWaterMark.ItemHeight = 17;
this.cbxWaterMark.Location = new System.Drawing.Point(181, 70);
this.cbxWaterMark.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxWaterMark.Name = "cbxWaterMark";
this.cbxWaterMark.Size = new System.Drawing.Size(208, 27);
this.cbxWaterMark.Size = new System.Drawing.Size(157, 23);
this.superTooltip1.SetSuperTooltip(this.cbxWaterMark, new DevComponents.DotNetBar.SuperTooltipInfo("Watermark", "", "Select the watermark text that will be printed on each page of the PDF.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxWaterMark.TabIndex = 87;
this.cbxWaterMark.Visible = false;
@ -608,10 +607,10 @@ namespace VEPROMS
this.btnCreatePDF.BackColor = System.Drawing.SystemColors.Control;
this.btnCreatePDF.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnCreatePDF.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnCreatePDF.Location = new System.Drawing.Point(19, 505);
this.btnCreatePDF.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnCreatePDF.Location = new System.Drawing.Point(14, 410);
this.btnCreatePDF.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnCreatePDF.Name = "btnCreatePDF";
this.btnCreatePDF.Size = new System.Drawing.Size(177, 46);
this.btnCreatePDF.Size = new System.Drawing.Size(133, 37);
this.btnCreatePDF.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.superTooltip1.SetSuperTooltip(this.btnCreatePDF, new DevComponents.DotNetBar.SuperTooltipInfo("Create PDF", "", "Generate a PDF of the selected procedure.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnCreatePDF.TabIndex = 1;
@ -626,10 +625,10 @@ namespace VEPROMS
this.btnCancel.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnCancel.Location = new System.Drawing.Point(632, 505);
this.btnCancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnCancel.Location = new System.Drawing.Point(474, 410);
this.btnCancel.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(163, 46);
this.btnCancel.Size = new System.Drawing.Size(122, 37);
this.btnCancel.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.superTooltip1.SetSuperTooltip(this.btnCancel, new DevComponents.DotNetBar.SuperTooltipInfo("Cancel", "", "Exit the Create PDF dialog without doing anything.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnCancel.TabIndex = 2;
@ -645,10 +644,10 @@ namespace VEPROMS
this.cbxDebug.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true));
this.cbxDebug.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxDebug.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxDebug.Location = new System.Drawing.Point(19, 470);
this.cbxDebug.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxDebug.Location = new System.Drawing.Point(14, 382);
this.cbxDebug.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxDebug.Name = "cbxDebug";
this.cbxDebug.Size = new System.Drawing.Size(127, 24);
this.cbxDebug.Size = new System.Drawing.Size(104, 20);
this.superTooltip1.SetSuperTooltip(this.cbxDebug, new DevComponents.DotNetBar.SuperTooltipInfo("Overlay PDF", "", resources.GetString("cbxDebug.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 130)));
this.cbxDebug.TabIndex = 98;
this.cbxDebug.Text = "Overlay PDF";
@ -663,10 +662,10 @@ namespace VEPROMS
this.cbxOrPgBrk.DataBindings.Add(new System.Windows.Forms.Binding("Checked", this.docVersionConfigBindingSource, "Print_AlwaysOverwritePDF", true));
this.cbxOrPgBrk.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxOrPgBrk.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxOrPgBrk.Location = new System.Drawing.Point(128, 313);
this.cbxOrPgBrk.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxOrPgBrk.Location = new System.Drawing.Point(79, 254);
this.cbxOrPgBrk.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxOrPgBrk.Name = "cbxOrPgBrk";
this.cbxOrPgBrk.Size = new System.Drawing.Size(200, 22);
this.cbxOrPgBrk.Size = new System.Drawing.Size(167, 19);
this.cbxOrPgBrk.TabIndex = 99;
this.cbxOrPgBrk.Text = "Use Original Page Breaks";
this.cbxOrPgBrk.UseVisualStyleBackColor = false;
@ -676,20 +675,20 @@ namespace VEPROMS
this.superTooltip1.DefaultTooltipSettings = new DevComponents.DotNetBar.SuperTooltipInfo("", "", "", null, null, DevComponents.DotNetBar.eTooltipColor.Gray);
this.superTooltip1.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
//
// cbxRemoveManualPageBreaks
// cbxRemoveTrailing
//
this.cbxRemoveManualPageBreaks.AutoSize = true;
this.cbxRemoveManualPageBreaks.BackColor = System.Drawing.Color.Transparent;
this.cbxRemoveManualPageBreaks.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxRemoveManualPageBreaks.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxRemoveManualPageBreaks.Location = new System.Drawing.Point(196, 470);
this.cbxRemoveManualPageBreaks.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxRemoveManualPageBreaks.Name = "cbxRemoveManualPageBreaks";
this.cbxRemoveManualPageBreaks.Size = new System.Drawing.Size(434, 24);
this.superTooltip1.SetSuperTooltip(this.cbxRemoveManualPageBreaks, new DevComponents.DotNetBar.SuperTooltipInfo("Remove Hard Returns and Manual Page Break", "", resources.GetString("cbxRemoveManualPageBreaks.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(280, 170)));
this.cbxRemoveManualPageBreaks.TabIndex = 101;
this.cbxRemoveManualPageBreaks.Text = "Remove Trailing Hard Returns && Manual Page Breaks";
this.cbxRemoveManualPageBreaks.UseVisualStyleBackColor = false;
this.cbxRemoveTrailing.AutoSize = true;
this.cbxRemoveTrailing.BackColor = System.Drawing.Color.Transparent;
this.cbxRemoveTrailing.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxRemoveTrailing.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxRemoveTrailing.Location = new System.Drawing.Point(2, 2);
this.cbxRemoveTrailing.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxRemoveTrailing.Name = "cbxRemoveTrailing";
this.cbxRemoveTrailing.Size = new System.Drawing.Size(329, 20);
this.superTooltip1.SetSuperTooltip(this.cbxRemoveTrailing, new DevComponents.DotNetBar.SuperTooltipInfo("Removing Hard Returns, Spaces and Manual Page Breaks", "", resources.GetString("cbxRemoveTrailing.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(280, 210)));
this.cbxRemoveTrailing.TabIndex = 101;
this.cbxRemoveTrailing.Text = "Removing Trailing Hard Returns && Trailing Spaces";
this.cbxRemoveTrailing.UseVisualStyleBackColor = false;
//
// labelX5
//
@ -699,10 +698,9 @@ namespace VEPROMS
//
this.labelX5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX5.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX5.Location = new System.Drawing.Point(123, 229);
this.labelX5.Margin = new System.Windows.Forms.Padding(4);
this.labelX5.Location = new System.Drawing.Point(92, 186);
this.labelX5.Name = "labelX5";
this.labelX5.Size = new System.Drawing.Size(203, 28);
this.labelX5.Size = new System.Drawing.Size(152, 23);
this.superTooltip1.SetSuperTooltip(this.labelX5, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bars", "", "A change bar will be printed for each step editor text that has been modified sin" +
"ce the last PROMS Approval.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 80)));
this.labelX5.TabIndex = 110;
@ -718,10 +716,10 @@ namespace VEPROMS
this.ppGpbxUserSpecTxt.Controls.Add(this.ppTxbxChangeBarUserMsgOne);
this.ppGpbxUserSpecTxt.DisabledBackColor = System.Drawing.Color.Empty;
this.ppGpbxUserSpecTxt.Enabled = false;
this.ppGpbxUserSpecTxt.Location = new System.Drawing.Point(272, 38);
this.ppGpbxUserSpecTxt.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppGpbxUserSpecTxt.Location = new System.Drawing.Point(204, 31);
this.ppGpbxUserSpecTxt.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppGpbxUserSpecTxt.Name = "ppGpbxUserSpecTxt";
this.ppGpbxUserSpecTxt.Size = new System.Drawing.Size(232, 105);
this.ppGpbxUserSpecTxt.Size = new System.Drawing.Size(174, 85);
//
//
//
@ -758,40 +756,42 @@ namespace VEPROMS
// label14
//
this.label14.AutoSize = true;
this.label14.Location = new System.Drawing.Point(45, 14);
this.label14.Location = new System.Drawing.Point(34, 11);
this.label14.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(73, 20);
this.label14.Size = new System.Drawing.Size(59, 16);
this.label14.TabIndex = 4;
this.label14.Text = "Line one";
//
// ppTxbxChangeBarUserMsgTwo
//
this.ppTxbxChangeBarUserMsgTwo.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.docVersionConfigBindingSource, "Print_UserCBMess2", true));
this.ppTxbxChangeBarUserMsgTwo.Location = new System.Drawing.Point(119, 47);
this.ppTxbxChangeBarUserMsgTwo.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppTxbxChangeBarUserMsgTwo.Location = new System.Drawing.Point(89, 38);
this.ppTxbxChangeBarUserMsgTwo.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppTxbxChangeBarUserMsgTwo.Multiline = false;
this.ppTxbxChangeBarUserMsgTwo.Name = "ppTxbxChangeBarUserMsgTwo";
this.ppTxbxChangeBarUserMsgTwo.Size = new System.Drawing.Size(57, 24);
this.ppTxbxChangeBarUserMsgTwo.Size = new System.Drawing.Size(44, 20);
this.ppTxbxChangeBarUserMsgTwo.TabIndex = 2;
this.ppTxbxChangeBarUserMsgTwo.Text = "";
//
// label15
//
this.label15.AutoSize = true;
this.label15.Location = new System.Drawing.Point(49, 50);
this.label15.Location = new System.Drawing.Point(37, 41);
this.label15.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(72, 20);
this.label15.Size = new System.Drawing.Size(56, 16);
this.label15.TabIndex = 5;
this.label15.Text = "Line two";
//
// ppTxbxChangeBarUserMsgOne
//
this.ppTxbxChangeBarUserMsgOne.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.docVersionConfigBindingSource, "Print_UserCBMess1", true));
this.ppTxbxChangeBarUserMsgOne.Location = new System.Drawing.Point(119, 11);
this.ppTxbxChangeBarUserMsgOne.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppTxbxChangeBarUserMsgOne.Location = new System.Drawing.Point(89, 9);
this.ppTxbxChangeBarUserMsgOne.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppTxbxChangeBarUserMsgOne.Multiline = false;
this.ppTxbxChangeBarUserMsgOne.Name = "ppTxbxChangeBarUserMsgOne";
this.ppTxbxChangeBarUserMsgOne.Size = new System.Drawing.Size(57, 24);
this.ppTxbxChangeBarUserMsgOne.Size = new System.Drawing.Size(44, 20);
this.ppTxbxChangeBarUserMsgOne.TabIndex = 1;
this.ppTxbxChangeBarUserMsgOne.Text = "";
//
@ -803,11 +803,11 @@ namespace VEPROMS
this.ppCmbxChgBarTxtType.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.ppCmbxChgBarTxtType.Enabled = false;
this.ppCmbxChgBarTxtType.FormattingEnabled = true;
this.ppCmbxChgBarTxtType.ItemHeight = 21;
this.ppCmbxChgBarTxtType.Location = new System.Drawing.Point(4, 79);
this.ppCmbxChgBarTxtType.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppCmbxChgBarTxtType.ItemHeight = 17;
this.ppCmbxChgBarTxtType.Location = new System.Drawing.Point(3, 64);
this.ppCmbxChgBarTxtType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppCmbxChgBarTxtType.Name = "ppCmbxChgBarTxtType";
this.ppCmbxChgBarTxtType.Size = new System.Drawing.Size(245, 27);
this.ppCmbxChgBarTxtType.Size = new System.Drawing.Size(185, 23);
this.superTooltip1.SetSuperTooltip(this.ppCmbxChgBarTxtType, new DevComponents.DotNetBar.SuperTooltipInfo("Change Bar Text Type", "", "Select the type of information that is printed next to each change bar (step edit" +
"or sections only).", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.ppCmbxChgBarTxtType.TabIndex = 48;
@ -821,10 +821,10 @@ namespace VEPROMS
this.cbxOvrrideDefChgBars.BackColor = System.Drawing.Color.Transparent;
this.cbxOvrrideDefChgBars.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxOvrrideDefChgBars.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxOvrrideDefChgBars.Location = new System.Drawing.Point(7, 7);
this.cbxOvrrideDefChgBars.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxOvrrideDefChgBars.Location = new System.Drawing.Point(5, 6);
this.cbxOvrrideDefChgBars.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxOvrrideDefChgBars.Name = "cbxOvrrideDefChgBars";
this.cbxOvrrideDefChgBars.Size = new System.Drawing.Size(275, 24);
this.cbxOvrrideDefChgBars.Size = new System.Drawing.Size(221, 20);
this.superTooltip1.SetSuperTooltip(this.cbxOvrrideDefChgBars, new DevComponents.DotNetBar.SuperTooltipInfo("Override Change Bar Text Type", "", "Override the information that is printed next to each change bar (step editor sec" +
"tions only)", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.cbxOvrrideDefChgBars.TabIndex = 79;
@ -840,10 +840,9 @@ namespace VEPROMS
//
this.lblGeneratePlacekeeper.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblGeneratePlacekeeper.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblGeneratePlacekeeper.Location = new System.Drawing.Point(124, 189);
this.lblGeneratePlacekeeper.Margin = new System.Windows.Forms.Padding(4);
this.lblGeneratePlacekeeper.Location = new System.Drawing.Point(93, 154);
this.lblGeneratePlacekeeper.Name = "lblGeneratePlacekeeper";
this.lblGeneratePlacekeeper.Size = new System.Drawing.Size(203, 28);
this.lblGeneratePlacekeeper.Size = new System.Drawing.Size(152, 23);
this.superTooltip1.SetSuperTooltip(this.lblGeneratePlacekeeper, new DevComponents.DotNetBar.SuperTooltipInfo("Generate PlaceKeeper", "", "PlaceKeeper information will be generated and displayed in Word. The contents of " +
"which can be copied and pasted into a PROMS Word attachment.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(200, 100)));
this.lblGeneratePlacekeeper.TabIndex = 110;
@ -858,10 +857,9 @@ namespace VEPROMS
//
this.labelX3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX3.Location = new System.Drawing.Point(124, 118);
this.labelX3.Margin = new System.Windows.Forms.Padding(4);
this.labelX3.Location = new System.Drawing.Point(93, 96);
this.labelX3.Name = "labelX3";
this.labelX3.Size = new System.Drawing.Size(327, 28);
this.labelX3.Size = new System.Drawing.Size(245, 23);
this.superTooltip1.SetSuperTooltip(this.labelX3, new DevComponents.DotNetBar.SuperTooltipInfo("Show PROMS Version Number", "", "The PROMS Version number will print in the upper right corner of each page.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.labelX3.TabIndex = 110;
this.labelX3.Text = "Show PROMS Version Number";
@ -874,10 +872,9 @@ namespace VEPROMS
//
this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX2.Location = new System.Drawing.Point(108, 12);
this.labelX2.Margin = new System.Windows.Forms.Padding(4);
this.labelX2.Location = new System.Drawing.Point(81, 10);
this.labelX2.Name = "labelX2";
this.labelX2.Size = new System.Drawing.Size(327, 28);
this.labelX2.Size = new System.Drawing.Size(245, 23);
this.superTooltip1.SetSuperTooltip(this.labelX2, new DevComponents.DotNetBar.SuperTooltipInfo("Add Blank Pages for Duplex Printing", "", "Blank pages will be inserted where needed (for the back side of a page) when gene" +
"rating the PDF that prints information (Foldouts or Supplemental Info) on back p" +
"ages.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
@ -892,10 +889,9 @@ namespace VEPROMS
//
this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX1.Location = new System.Drawing.Point(124, 48);
this.labelX1.Margin = new System.Windows.Forms.Padding(4);
this.labelX1.Location = new System.Drawing.Point(93, 39);
this.labelX1.Name = "labelX1";
this.labelX1.Size = new System.Drawing.Size(149, 28);
this.labelX1.Size = new System.Drawing.Size(112, 23);
this.superTooltip1.SetSuperTooltip(this.labelX1, new DevComponents.DotNetBar.SuperTooltipInfo("PDF Links", "", resources.GetString("labelX1.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 125)));
this.labelX1.TabIndex = 108;
this.labelX1.Text = "PDF Links";
@ -908,10 +904,9 @@ namespace VEPROMS
//
this.labelX4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.labelX4.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.labelX4.Location = new System.Drawing.Point(124, 154);
this.labelX4.Margin = new System.Windows.Forms.Padding(4);
this.labelX4.Location = new System.Drawing.Point(93, 125);
this.labelX4.Name = "labelX4";
this.labelX4.Size = new System.Drawing.Size(371, 28);
this.labelX4.Size = new System.Drawing.Size(278, 23);
this.superTooltip1.SetSuperTooltip(this.labelX4, new DevComponents.DotNetBar.SuperTooltipInfo("Add Prefix / Suffix To PDF File Name", "", "The prefix and/or suffix defined on the Output tab of the Working Draft property " +
"page will be added to the PDF file name. \r\n\r\nNote that the PDF Links option wil" +
"l not be available.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(250, 105)));
@ -924,16 +919,31 @@ namespace VEPROMS
this.btnMergePDFs.BackColor = System.Drawing.SystemColors.Control;
this.btnMergePDFs.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.btnMergePDFs.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnMergePDFs.Location = new System.Drawing.Point(216, 505);
this.btnMergePDFs.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.btnMergePDFs.Location = new System.Drawing.Point(162, 410);
this.btnMergePDFs.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnMergePDFs.Name = "btnMergePDFs";
this.btnMergePDFs.Size = new System.Drawing.Size(177, 46);
this.btnMergePDFs.Size = new System.Drawing.Size(133, 37);
this.btnMergePDFs.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.superTooltip1.SetSuperTooltip(this.btnMergePDFs, new DevComponents.DotNetBar.SuperTooltipInfo("Create PDF", "", "Generate a PDF of the selected procedures.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray));
this.btnMergePDFs.TabIndex = 110;
this.btnMergePDFs.Text = "Merge PDFs";
this.btnMergePDFs.Click += new System.EventHandler(this.btnMergePDFs_Click);
//
// cbxRemoveManualPgBrk
//
this.cbxRemoveManualPgBrk.AutoSize = true;
this.cbxRemoveManualPgBrk.BackColor = System.Drawing.Color.Transparent;
this.cbxRemoveManualPgBrk.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxRemoveManualPgBrk.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxRemoveManualPgBrk.Location = new System.Drawing.Point(2, 18);
this.cbxRemoveManualPgBrk.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxRemoveManualPgBrk.Name = "cbxRemoveManualPgBrk";
this.cbxRemoveManualPgBrk.Size = new System.Drawing.Size(218, 20);
this.superTooltip1.SetSuperTooltip(this.cbxRemoveManualPgBrk, new DevComponents.DotNetBar.SuperTooltipInfo("Removing Hard Returns, Spaces and Manual Page Breaks", "", resources.GetString("cbxRemoveManualPgBrk.SuperTooltip"), null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(280, 210)));
this.cbxRemoveManualPgBrk.TabIndex = 102;
this.cbxRemoveManualPgBrk.Text = "Removing Manual Page Breaks";
this.cbxRemoveManualPgBrk.UseVisualStyleBackColor = false;
//
// cbxGenerateConActSum
//
this.cbxGenerateConActSum.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
@ -942,10 +952,10 @@ namespace VEPROMS
this.cbxGenerateConActSum.BackColor = System.Drawing.Color.Transparent;
this.cbxGenerateConActSum.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.cbxGenerateConActSum.ForeColor = System.Drawing.SystemColors.ControlText;
this.cbxGenerateConActSum.Location = new System.Drawing.Point(323, 315);
this.cbxGenerateConActSum.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.cbxGenerateConActSum.Location = new System.Drawing.Point(243, 256);
this.cbxGenerateConActSum.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbxGenerateConActSum.Name = "cbxGenerateConActSum";
this.cbxGenerateConActSum.Size = new System.Drawing.Size(379, 21);
this.cbxGenerateConActSum.Size = new System.Drawing.Size(284, 17);
this.cbxGenerateConActSum.TabIndex = 102;
this.cbxGenerateConActSum.Text = "Generate Contiuous Action Summary (hidden but used)";
this.cbxGenerateConActSum.UseVisualStyleBackColor = false;
@ -964,10 +974,10 @@ namespace VEPROMS
this.ppGpbxUserSpecCB.Controls.Add(this.cbxOvrrideDefChgBars);
this.ppGpbxUserSpecCB.DisabledBackColor = System.Drawing.Color.Empty;
this.ppGpbxUserSpecCB.Enabled = false;
this.ppGpbxUserSpecCB.Location = new System.Drawing.Point(25, 374);
this.ppGpbxUserSpecCB.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.ppGpbxUserSpecCB.Location = new System.Drawing.Point(19, 304);
this.ppGpbxUserSpecCB.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppGpbxUserSpecCB.Name = "ppGpbxUserSpecCB";
this.ppGpbxUserSpecCB.Size = new System.Drawing.Size(515, 182);
this.ppGpbxUserSpecCB.Size = new System.Drawing.Size(386, 148);
//
//
//
@ -1003,9 +1013,10 @@ namespace VEPROMS
//
this.lblCbTxtType.AutoSize = true;
this.lblCbTxtType.Enabled = false;
this.lblCbTxtType.Location = new System.Drawing.Point(3, 53);
this.lblCbTxtType.Location = new System.Drawing.Point(2, 43);
this.lblCbTxtType.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0);
this.lblCbTxtType.Name = "lblCbTxtType";
this.lblCbTxtType.Size = new System.Drawing.Size(87, 20);
this.lblCbTxtType.Size = new System.Drawing.Size(72, 16);
this.lblCbTxtType.TabIndex = 8;
this.lblCbTxtType.Text = "Text Type:";
this.lblCbTxtType.TextAlign = System.Drawing.ContentAlignment.BottomLeft;
@ -1016,10 +1027,9 @@ namespace VEPROMS
//
//
this.swtbtnChgBar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnChgBar.Location = new System.Drawing.Point(25, 229);
this.swtbtnChgBar.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnChgBar.Location = new System.Drawing.Point(19, 186);
this.swtbtnChgBar.Name = "swtbtnChgBar";
this.swtbtnChgBar.Size = new System.Drawing.Size(88, 27);
this.swtbtnChgBar.Size = new System.Drawing.Size(66, 22);
this.swtbtnChgBar.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnChgBar.SwitchClickTogglesValue = true;
this.swtbtnChgBar.TabIndex = 109;
@ -1031,10 +1041,9 @@ namespace VEPROMS
//
//
this.swtbtnWaterMark.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnWaterMark.Location = new System.Drawing.Point(27, 83);
this.swtbtnWaterMark.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnWaterMark.Location = new System.Drawing.Point(20, 67);
this.swtbtnWaterMark.Name = "swtbtnWaterMark";
this.swtbtnWaterMark.Size = new System.Drawing.Size(88, 27);
this.swtbtnWaterMark.Size = new System.Drawing.Size(66, 22);
this.swtbtnWaterMark.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnWaterMark.SwitchClickTogglesValue = true;
this.swtbtnWaterMark.TabIndex = 109;
@ -1046,10 +1055,9 @@ namespace VEPROMS
//
//
this.swtbtnGeneratePlacekeeper.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnGeneratePlacekeeper.Location = new System.Drawing.Point(27, 191);
this.swtbtnGeneratePlacekeeper.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnGeneratePlacekeeper.Location = new System.Drawing.Point(20, 155);
this.swtbtnGeneratePlacekeeper.Name = "swtbtnGeneratePlacekeeper";
this.swtbtnGeneratePlacekeeper.Size = new System.Drawing.Size(88, 27);
this.swtbtnGeneratePlacekeeper.Size = new System.Drawing.Size(66, 22);
this.swtbtnGeneratePlacekeeper.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnGeneratePlacekeeper.SwitchClickTogglesValue = true;
this.swtbtnGeneratePlacekeeper.TabIndex = 109;
@ -1061,10 +1069,9 @@ namespace VEPROMS
//
//
this.swtbtnPROMSVersion.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnPROMSVersion.Location = new System.Drawing.Point(27, 118);
this.swtbtnPROMSVersion.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnPROMSVersion.Location = new System.Drawing.Point(20, 96);
this.swtbtnPROMSVersion.Name = "swtbtnPROMSVersion";
this.swtbtnPROMSVersion.Size = new System.Drawing.Size(88, 27);
this.swtbtnPROMSVersion.Size = new System.Drawing.Size(66, 22);
this.swtbtnPROMSVersion.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnPROMSVersion.SwitchClickTogglesValue = true;
this.swtbtnPROMSVersion.TabIndex = 109;
@ -1075,10 +1082,9 @@ namespace VEPROMS
//
//
this.swtbtnBlankPgsForDuplex.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnBlankPgsForDuplex.Location = new System.Drawing.Point(11, 12);
this.swtbtnBlankPgsForDuplex.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnBlankPgsForDuplex.Location = new System.Drawing.Point(8, 10);
this.swtbtnBlankPgsForDuplex.Name = "swtbtnBlankPgsForDuplex";
this.swtbtnBlankPgsForDuplex.Size = new System.Drawing.Size(88, 27);
this.swtbtnBlankPgsForDuplex.Size = new System.Drawing.Size(66, 22);
this.swtbtnBlankPgsForDuplex.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnBlankPgsForDuplex.SwitchClickTogglesValue = true;
this.swtbtnBlankPgsForDuplex.TabIndex = 109;
@ -1090,10 +1096,9 @@ namespace VEPROMS
//
//
this.swtbtnPDFLinks.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnPDFLinks.Location = new System.Drawing.Point(27, 48);
this.swtbtnPDFLinks.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnPDFLinks.Location = new System.Drawing.Point(20, 39);
this.swtbtnPDFLinks.Name = "swtbtnPDFLinks";
this.swtbtnPDFLinks.Size = new System.Drawing.Size(88, 27);
this.swtbtnPDFLinks.Size = new System.Drawing.Size(66, 22);
this.swtbtnPDFLinks.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnPDFLinks.SwitchClickTogglesValue = true;
this.swtbtnPDFLinks.TabIndex = 107;
@ -1125,10 +1130,9 @@ namespace VEPROMS
this.expandableSplitter1.HotGripDarkColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.expandableSplitter1.HotGripLightColor = System.Drawing.Color.FromArgb(((int)(((byte)(227)))), ((int)(((byte)(239)))), ((int)(((byte)(255)))));
this.expandableSplitter1.HotGripLightColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.expandableSplitter1.Location = new System.Drawing.Point(805, 0);
this.expandableSplitter1.Margin = new System.Windows.Forms.Padding(4);
this.expandableSplitter1.Location = new System.Drawing.Point(604, 0);
this.expandableSplitter1.Name = "expandableSplitter1";
this.expandableSplitter1.Size = new System.Drawing.Size(8, 567);
this.expandableSplitter1.Size = new System.Drawing.Size(6, 461);
this.expandableSplitter1.Style = DevComponents.DotNetBar.eSplitterStyle.Office2007;
this.expandableSplitter1.TabIndex = 107;
this.expandableSplitter1.TabStop = false;
@ -1137,6 +1141,7 @@ namespace VEPROMS
//
this.panelEx2.CanvasColor = System.Drawing.SystemColors.Control;
this.panelEx2.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelEx2.Controls.Add(this.groupPag);
this.panelEx2.Controls.Add(this.btnMergePDFs);
this.panelEx2.Controls.Add(this.gpnlDebug);
this.panelEx2.Controls.Add(this.cbxMultiunitPdfLocation);
@ -1161,13 +1166,11 @@ namespace VEPROMS
this.panelEx2.Controls.Add(this.lblPDFFileName);
this.panelEx2.Controls.Add(this.lblRevDate);
this.panelEx2.Controls.Add(this.lblRevNum);
this.panelEx2.Controls.Add(this.cbxRemoveManualPageBreaks);
this.panelEx2.DisabledBackColor = System.Drawing.Color.Empty;
this.panelEx2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelEx2.Location = new System.Drawing.Point(0, 0);
this.panelEx2.Margin = new System.Windows.Forms.Padding(4);
this.panelEx2.Name = "panelEx2";
this.panelEx2.Size = new System.Drawing.Size(805, 567);
this.panelEx2.Size = new System.Drawing.Size(604, 461);
this.panelEx2.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelEx2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelEx2.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -1177,6 +1180,48 @@ namespace VEPROMS
this.panelEx2.Style.GradientAngle = 90;
this.panelEx2.TabIndex = 108;
//
// groupPag
//
this.groupPag.CanvasColor = System.Drawing.SystemColors.Control;
this.groupPag.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.Office2007;
this.groupPag.Controls.Add(this.cbxRemoveManualPgBrk);
this.groupPag.Controls.Add(this.cbxRemoveTrailing);
this.groupPag.DisabledBackColor = System.Drawing.Color.Empty;
this.groupPag.Location = new System.Drawing.Point(161, 343);
this.groupPag.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupPag.Name = "groupPag";
this.groupPag.Size = new System.Drawing.Size(337, 58);
//
//
//
this.groupPag.Style.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.groupPag.Style.BackColorGradientAngle = 90;
this.groupPag.Style.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.groupPag.Style.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPag.Style.BorderBottomWidth = 1;
this.groupPag.Style.BorderColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder;
this.groupPag.Style.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPag.Style.BorderLeftWidth = 1;
this.groupPag.Style.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPag.Style.BorderRightWidth = 1;
this.groupPag.Style.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid;
this.groupPag.Style.BorderTopWidth = 1;
this.groupPag.Style.CornerDiameter = 4;
this.groupPag.Style.CornerType = DevComponents.DotNetBar.eCornerType.Rounded;
this.groupPag.Style.TextAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Center;
this.groupPag.Style.TextColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.groupPag.Style.TextLineAlignment = DevComponents.DotNetBar.eStyleTextAlignment.Near;
//
//
//
this.groupPag.StyleMouseDown.CornerType = DevComponents.DotNetBar.eCornerType.Square;
//
//
//
this.groupPag.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.groupPag.TabIndex = 111;
this.groupPag.Text = "Print using standard PROMS pagination rules by:";
//
// expPrnSetting
//
this.expPrnSetting.CanvasColor = System.Drawing.SystemColors.Control;
@ -1202,10 +1247,9 @@ namespace VEPROMS
this.expPrnSetting.ExpandOnTitleClick = true;
this.expPrnSetting.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.expPrnSetting.HideControlsWhenCollapsed = true;
this.expPrnSetting.Location = new System.Drawing.Point(813, 0);
this.expPrnSetting.Margin = new System.Windows.Forms.Padding(4);
this.expPrnSetting.Location = new System.Drawing.Point(610, 0);
this.expPrnSetting.Name = "expPrnSetting";
this.expPrnSetting.Size = new System.Drawing.Size(548, 567);
this.expPrnSetting.Size = new System.Drawing.Size(411, 461);
this.expPrnSetting.Style.Alignment = System.Drawing.StringAlignment.Center;
this.expPrnSetting.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.expPrnSetting.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -1214,7 +1258,6 @@ namespace VEPROMS
this.expPrnSetting.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.ItemText;
this.expPrnSetting.Style.GradientAngle = 90;
this.expPrnSetting.TabIndex = 112;
this.expPrnSetting.TitleHeight = 32;
this.expPrnSetting.TitleStyle.Alignment = System.Drawing.StringAlignment.Center;
this.expPrnSetting.TitleStyle.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.expPrnSetting.TitleStyle.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
@ -1236,9 +1279,10 @@ namespace VEPROMS
this.ppGpDuplex.Controls.Add(this.tbBlankPage);
this.ppGpDuplex.Controls.Add(this.lblBlPg);
this.ppGpDuplex.DisabledBackColor = System.Drawing.Color.Empty;
this.ppGpDuplex.Location = new System.Drawing.Point(25, 264);
this.ppGpDuplex.Location = new System.Drawing.Point(19, 214);
this.ppGpDuplex.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.ppGpDuplex.Name = "ppGpDuplex";
this.ppGpDuplex.Size = new System.Drawing.Size(515, 105);
this.ppGpDuplex.Size = new System.Drawing.Size(386, 85);
//
//
//
@ -1279,10 +1323,11 @@ namespace VEPROMS
this.tbBlankPage.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.tbBlankPage.Enabled = false;
this.tbBlankPage.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.tbBlankPage.Location = new System.Drawing.Point(85, 47);
this.tbBlankPage.Location = new System.Drawing.Point(64, 38);
this.tbBlankPage.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tbBlankPage.Name = "tbBlankPage";
this.tbBlankPage.PreventEnterBeep = true;
this.tbBlankPage.Size = new System.Drawing.Size(419, 24);
this.tbBlankPage.Size = new System.Drawing.Size(314, 21);
this.tbBlankPage.TabIndex = 113;
//
// lblBlPg
@ -1293,9 +1338,10 @@ namespace VEPROMS
//
this.lblBlPg.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.lblBlPg.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lblBlPg.Location = new System.Drawing.Point(16, 47);
this.lblBlPg.Location = new System.Drawing.Point(12, 38);
this.lblBlPg.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.lblBlPg.Name = "lblBlPg";
this.lblBlPg.Size = new System.Drawing.Size(74, 25);
this.lblBlPg.Size = new System.Drawing.Size(56, 20);
this.lblBlPg.TabIndex = 114;
this.lblBlPg.Text = "Message";
//
@ -1305,10 +1351,9 @@ namespace VEPROMS
//
//
this.swtbtnPDFdtPrefixSuffix.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.swtbtnPDFdtPrefixSuffix.Location = new System.Drawing.Point(27, 154);
this.swtbtnPDFdtPrefixSuffix.Margin = new System.Windows.Forms.Padding(4);
this.swtbtnPDFdtPrefixSuffix.Location = new System.Drawing.Point(20, 125);
this.swtbtnPDFdtPrefixSuffix.Name = "swtbtnPDFdtPrefixSuffix";
this.swtbtnPDFdtPrefixSuffix.Size = new System.Drawing.Size(88, 27);
this.swtbtnPDFdtPrefixSuffix.Size = new System.Drawing.Size(66, 22);
this.swtbtnPDFdtPrefixSuffix.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.swtbtnPDFdtPrefixSuffix.SwitchClickTogglesValue = true;
this.swtbtnPDFdtPrefixSuffix.TabIndex = 111;
@ -1316,16 +1361,16 @@ namespace VEPROMS
//
// DlgPrintProcedure
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(1361, 567);
this.ClientSize = new System.Drawing.Size(1021, 461);
this.Controls.Add(this.panelEx2);
this.Controls.Add(this.expandableSplitter1);
this.Controls.Add(this.expPrnSetting);
this.DoubleBuffered = true;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DlgPrintProcedure";
@ -1344,6 +1389,8 @@ namespace VEPROMS
this.ppGpbxUserSpecCB.PerformLayout();
this.panelEx2.ResumeLayout(false);
this.panelEx2.PerformLayout();
this.groupPag.ResumeLayout(false);
this.groupPag.PerformLayout();
this.expPrnSetting.ResumeLayout(false);
this.ppGpDuplex.ResumeLayout(false);
this.ResumeLayout(false);
@ -1386,7 +1433,7 @@ namespace VEPROMS
private DevComponents.Editors.ComboItem muLocText;
private DevComponents.Editors.ComboItem muLocID;
private DevComponents.DotNetBar.Controls.ProgressBarX pbPDFsStatus;
private System.Windows.Forms.CheckBox cbxRemoveManualPageBreaks;
private System.Windows.Forms.CheckBox cbxRemoveTrailing;
private DevComponents.DotNetBar.ButtonX btnPdfLocation;
private System.Windows.Forms.CheckBox cbxGenerateConActSum;
private System.Windows.Forms.CheckBox cbxMetaFile;
@ -1419,5 +1466,7 @@ namespace VEPROMS
private DevComponents.DotNetBar.LabelX lblBlPg;
private DevComponents.DotNetBar.Controls.GroupPanel ppGpDuplex;
private DevComponents.DotNetBar.ButtonX btnMergePDFs;
private DevComponents.DotNetBar.Controls.GroupPanel groupPag;
private System.Windows.Forms.CheckBox cbxRemoveManualPgBrk;
}
}

View File

@ -23,9 +23,18 @@ namespace VEPROMS
return swtbtnPDFLinks.Value;
}
}
public bool RemoveTrailingHardReturnsAndManualPageBreaks
public int RemoveTrailingHardReturnsAndManualPageBreaks
{
get { return cbxRemoveManualPageBreaks.Checked; }
get
{
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
// return values: 0=None; 1=Trailing; 2=ManualPgBrk; 3=Both.
// The designer file has the additional controls
if (!cbxRemoveManualPgBrk.Checked && !cbxRemoveTrailing.Checked) return 0;
if (!cbxRemoveManualPgBrk.Checked && cbxRemoveTrailing.Checked) return 1;
if (cbxRemoveManualPgBrk.Checked && !cbxRemoveTrailing.Checked) return 2;
return 3;
}
}
private string _Prefix = ""; // RHM20150506 Multiline ItemID TextBox
public string Prefix

View File

@ -172,16 +172,22 @@ The value entered here will be saved and displayed the next time this procedure
This option is only available when PROMS is run in Debug mode.
</value>
</data>
<data name="cbxRemoveManualPageBreaks.SuperTooltip" xml:space="preserve">
<value>This option will ignore Manual Page Breaks and Hard Returns that were entered at the end of step text as the procedure is being printed. This will allow the procedure to be printed using purely the PROMS pagination logic.
<data name="cbxRemoveTrailing.SuperTooltip" xml:space="preserve">
<value>This option will ignore Manual Page Breaks and/or Trailing Hard Returns and Trailing Spaces that were entered at the end of step text as the procedure is being printed. This will allow the procedure to be printed using purely the PROMS pagination logic. If found, you will be asked if these changes should be saved.
NOTE:
If you find that manual page breaks and/or hard returns are needed for an acceptable output, please contact Volian so that we can improve the pagination logic.</value>
If you find that manual page breaks and/or hard returns and spaces are needed for an acceptable output, please contact Volian so that we can improve the pagination logic.</value>
</data>
<data name="labelX1.SuperTooltip" xml:space="preserve">
<value>Will create live hyperlinks for transitions and Referenced Objects in the generated PDF file. See chapter C.3 in the PROMS user manual for details.
Note that the Add Prefix / Suffix to PDF File Name option will not be available.</value>
</data>
<data name="cbxRemoveManualPgBrk.SuperTooltip" xml:space="preserve">
<value>This option will ignore Manual Page Breaks and/or Trailing Hard Returns and Trailing Spaces that were entered at the end of step text as the procedure is being printed. This will allow the procedure to be printed using purely the PROMS pagination logic. If found, you will be asked if these changes should be saved.
NOTE:
If you find that manual page breaks and/or hard returns and spaces are needed for an acceptable output, please contact Volian so that we can improve the pagination logic.</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>40</value>

View File

@ -1198,7 +1198,7 @@ namespace VEPROMS
//ProcedureInfo myproc = pi;
//frmPDFStatusForm frm = new frmPDFStatusForm(myproc, ap.RevNumber, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location);
//myproc.ChangeBarDate = myDTS;
frmPDFStatusForm frm = new frmPDFStatusForm(pi, ap.RevNumAndDate, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location, pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts, true, "", false, false, false,
frmPDFStatusForm frm = new frmPDFStatusForm(pi, ap.RevNumAndDate, /* revdate change: ap.RevDate.ToString("MM/dd/yyyy") ,*/ waterMark, false, false, ViewPDF, true, VlnSettings.TemporaryFolder, new ChangeBarDefinition(pi.MyDocVersion.MyConfig as DocVersionConfig, pi.ActiveFormat), pdfTmp, location, pi.MyDocVersion.DocVersionConfig.Print_AddBlankPagesWhenUsingDuplexFoldouts, true, "", false, 0, false,
MyProcedures.Count > (MyProcedures[0].ProcInfo.MyDocVersion.Procedures.Count / 4), pi.MyDocVersion.DocVersionConfig.Print_DuplexBlankPageText, null); // C2019-004: Allow user to define duplex lank page text at the docversion level
frm.AllowAllWatermarks = true;
frm.CloseWhenDone = !ViewPDF;

View File

@ -8,6 +8,7 @@ using System.Windows.Forms;
using Volian.Print.Library;
using VEPROMS.CSLA.Library;
using Volian.Base.Library;
using JR.Utils.GUI.Forms;
namespace VEPROMS
{
@ -81,7 +82,7 @@ namespace VEPROMS
get { return _DidAll; }
set { _DidAll = value; }
}
public frmPDFStatusForm(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, bool openPDF, bool overWrite, string pdfPath, ChangeBarDefinition cbd, string pdfFile, Point newLocation, bool insertBlankPages, bool allOrAuto, string prefix, bool saveLinks, bool removeTrailingHardReturnsAndManualPageBreaks, bool showPROMSVer, bool didAll, string blankPageText, MergedPdf mergedPdf)
public frmPDFStatusForm(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, bool openPDF, bool overWrite, string pdfPath, ChangeBarDefinition cbd, string pdfFile, Point newLocation, bool insertBlankPages, bool allOrAuto, string prefix, bool saveLinks, int removeTrailingHardReturnsAndManualPageBreaks, bool showPROMSVer, bool didAll, string blankPageText, MergedPdf mergedPdf)
{
Prefix = prefix;
OpenPDF = openPDF;
@ -220,6 +221,21 @@ namespace VEPROMS
{
OpenPDFandPlacekeeper(_PdfFile);
this.Close();
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save. Ask if user wants to save chanages
// if they were found.
if ((MyPromsPrinter.RemoveManualPageBreaks != null && MyPromsPrinter.RemoveManualPageBreaks.Count > 0)
|| (MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces != null && MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Count > 0))
{
if (UserInfo.CanEdit(frmVEPROMS.SMyUserInfo, MyPromsPrinter.MyItem.MyDocVersion))
{
if (FlexibleMessageBox.Show(this, "The procedure PDF file was created by removing certain hard returns,\r\ntrailing spaces, and manual page breaks that could affect the\r\n"+
"pagination of the procedure.\r\n\r\nAfter reviewing the PDF file, do you want to save the changes made?",
"Confirm Pagination Changes", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
MyPromsPrinter.SavePaginationFixes();
}
}
}
return;
}
btnOpenFolder.Visible = btnOpenPDF.Visible = true;

View File

@ -1580,7 +1580,7 @@ namespace VEPROMS
}
public UserInfo MyUserInfo = null;
public static UserInfo SMyUserInfo = null; // C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
public VersionWindowList MyVersionWindowList;
public ContentInfo ci1;
public ContentInfo ci2;
@ -1636,6 +1636,7 @@ namespace VEPROMS
try
{
MyUserInfo = UserInfo.GetByUserID(VlnSettings.UserID);
SMyUserInfo = MyUserInfo;
}
catch
{
@ -1648,6 +1649,7 @@ namespace VEPROMS
Group g = Group.Get(securityRole);
Membership.MakeMembership(u, g, null, "");
MyUserInfo = UserInfo.Get(u.UID);
SMyUserInfo = MyUserInfo;
}
ctrlAnnotationDetails.MyUserInfo = MyUserInfo;
DisplayRO.MyUserInfo = MyUserInfo; // set the user's security information in the properties RO panel

View File

@ -315,6 +315,28 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Step_PreferredPagebreak");
}
}
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
// EmptyStep was added to make printing consistent after saving of trailing newlines/spaces.
// The print code was printing an empty string rather than a space. But a space gets saved since
// without it the step is deleted.
public bool Step_EmptyStep
{
get
{
string s = _Xp["Step", "EmptyStep"];
if (s == string.Empty) return false;
if (s == "True") return true;
return false;
}
set
{
string s = _Xp["Step", "EmptyStep"];
if (value.ToString() == s) return;
_Xp["Step", "EmptyStep"] = value.ToString();
OnPropertyChanged("Step_EmptyStep");
}
}
//[Category("Step Attributes")]
//[DisplayName("Step Change Bar Override")]
//[RefreshProperties(RefreshProperties.All)]

View File

@ -15,6 +15,7 @@ namespace VEPROMS.CSLA.Library
{
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
#region Properties
public static int RemoveTrailingBlankID = -1;
private bool _setDTS = true; // Added for when data is cleaned so that DTS/UserID are not reset (for B2016-037 fix)
public bool SetDTS
{
@ -132,6 +133,24 @@ namespace VEPROMS.CSLA.Library
_MyItemInfo = itemInfo;
OriginalText = epMode == E_EditPrintMode.Print && RemoveTrailingHardReturnAndManualPageBreaks ?
Regex.Replace(InfoText, "(\\\\line|\r|\n|\\\\u160\\?| )+$", "") : InfoText;
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save. Use RemoveTrailingBlankID to
// return the itemid if this item's text was changed because print is occurring with removal of trailing
// hardreturns.
RemoveTrailingBlankID = -1;
if (!itemInfo.IsTable && RemoveTrailingHardReturnAndManualPageBreaks && InfoText != OriginalText)
{
// No 'true' change occurred if trailing space was after an rtf command
if (!OriginalText.EndsWith(@"\b0") && !OriginalText.EndsWith(@"\i0") && !OriginalText.EndsWith(@"\ulnone") &&
!OriginalText.EndsWith(@"\up0") && !OriginalText.EndsWith(@"\dn0"))
RemoveTrailingBlankID = itemInfo.ItemID;
else
OriginalText = InfoText;
}
if (epMode == E_EditPrintMode.Print && !RemoveTrailingHardReturnAndManualPageBreaks) // if step was made empty from previous print & not removing now, text is an empty string
{
StepConfig sc = itemInfo.MyConfig as StepConfig;
if (sc != null && sc.Step_EmptyStep) OriginalText = "";
}
//OriginalText = InfoText;
//if (OriginalText != InfoText) Console.WriteLine("ItemId = {0}, {1}", itemInfo.ItemID, OriginalText.Length-InfoText.Length);
if (OriginalText.Contains("Prerequisite") && epMode == E_EditPrintMode.Print)

View File

@ -265,8 +265,10 @@ namespace Volian.Print.Library
StepConfig sc = firstChild.MyItemInfo.MyConfig as StepConfig;
ManualPageBreak = MyPageHelper.OriginalPageBreak ? (sc == null ? false : sc.Step_ManualPagebreak) :
sc == null ? false :
MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndManualPageBreaks ? false : sc.Step_NewManualPagebreak;
(MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks == null)? sc.Step_NewManualPagebreak : false;
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
if (sc != null && sc.Step_NewManualPagebreak && MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks != null &&
!MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks.Contains(firstChild.MyItemInfo.ItemID)) MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks.Add(firstChild.MyItemInfo.ItemID);
if (ManualPageBreak)
{
SectionPageBreak = true;
@ -390,7 +392,11 @@ namespace Volian.Print.Library
//Console.WriteLine("{0} Paginate", MyPageHelper.HLSText);
StepConfig sc1 = MyItemInfo.MyConfig as StepConfig;
ManualPageBreak = MyPageHelper.OriginalPageBreak ? (sc1 == null ? false : sc1.Step_ManualPagebreak) :
sc1 == null ? false : MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndManualPageBreaks ? false : sc1.Step_NewManualPagebreak;
sc1 == null ? false : (MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks == null) ? sc1.Step_NewManualPagebreak : false;
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
if (sc1 != null && sc1.Step_NewManualPagebreak &&
MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks != null && !MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks.Contains(MyItemInfo.ItemID)) MyPageHelper.MyPromsPrinter.RemoveManualPageBreaks.Add(MyItemInfo.ItemID);
if (MyItemInfo.FirstSibling == MyItemInfo && ManualPageBreak)
{
// if parent/section used this pagebreak, skip it.

View File

@ -116,11 +116,20 @@ namespace Volian.Print.Library
get { return _SaveLinks; }
set { _SaveLinks = value; }
}
private bool _RemoveTrailingHardReturnsAndManualPageBreaks = false;
public bool RemoveTrailingHardReturnsAndManualPageBreaks
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
// Use these 2 lists to track the items that will need to be saved after removing trailing newlines/spaces or
// manual page breaks, if the user selects to do that.
private List<int> _RemoveTrailingHardReturnsAndSpaces = null;
public List<int> RemoveTrailingHardReturnsAndSpaces
{
get { return _RemoveTrailingHardReturnsAndManualPageBreaks; }
set { _RemoveTrailingHardReturnsAndManualPageBreaks = value; }
get { return _RemoveTrailingHardReturnsAndSpaces; }
set { _RemoveTrailingHardReturnsAndSpaces = value; }
}
private List<int> _RemoveManualPageBreaks = null;
public List<int> RemoveManualPageBreaks
{
get { return _RemoveManualPageBreaks; }
set { _RemoveManualPageBreaks = value; }
}
private string _Prefix = ""; // RHM20150506 Multiline ItemID TextBox
@ -307,7 +316,7 @@ namespace Volian.Print.Library
set { _MergedPdf = value; }
}
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite,
ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix, bool saveLinks, bool removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf)
ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix, bool saveLinks, int removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf)
{
Prefix = prefix; // RHM20150506 Multiline ItemID TextBox
_MyItem = myItem;
@ -324,7 +333,9 @@ namespace Volian.Print.Library
_BatchPrint = batchPrint;
_MyReaderHelper = new ReaderHelper(this);
_SaveLinks = saveLinks;
_RemoveTrailingHardReturnsAndManualPageBreaks = removeTrailngHardReturnsAndManualPageBreaks;
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
if (removeTrailngHardReturnsAndManualPageBreaks == 1 || removeTrailngHardReturnsAndManualPageBreaks == 3 ) RemoveTrailingHardReturnsAndSpaces = new List<int>();
if (removeTrailngHardReturnsAndManualPageBreaks == 2 || removeTrailngHardReturnsAndManualPageBreaks == 3) RemoveManualPageBreaks = new List<int>();
_BlankPageText = blankPageText;
_DidAll = didAll;
_MergeNotIncluded = false;
@ -2454,6 +2465,78 @@ namespace Volian.Print.Library
*/
return ms.ToArray();
}
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
public void SavePaginationFixes()
{
// If manual page breaks were removed (during pagination), save those
if (RemoveManualPageBreaks != null && RemoveManualPageBreaks.Count > 0)
{
foreach (int iid in RemoveManualPageBreaks)
{
ItemInfo ii = ItemInfo.Get(iid);
StepConfig sc = ii.MyConfig as StepConfig;
if (sc != null)
{
using (Item itm = Item.Get(iid))
{
VEPROMS.CSLA.Library.Annotation x = VEPROMS.CSLA.Library.Annotation.MakeAnnotation(itm, AnnotationType.GetByNameOrCreate("Manual Pagination Issues"), null, "Removed Manual Page Break", null);
sc.Step_NewManualPagebreak = false; // reset the flag that was set in the config
itm.MyContent.Config = sc.ToString();
itm.MyContent.DTS = DateTime.Now;
itm.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
itm.MyContent.Save();
}
}
}
}
// If trailing newlines and/or spages were removed, save those
if (RemoveTrailingHardReturnsAndSpaces != null && RemoveTrailingHardReturnsAndSpaces.Count > 0)
{
foreach (int iid in RemoveTrailingHardReturnsAndSpaces)
{
// first check if it exists, if the step was empty, it may have been deleted.
ItemInfo iitmp = ItemInfo.Get(iid);
if (iitmp != null)
{
string annot = "Removed Trailing Newlines and Spaces";
if (RemoveManualPageBreaks != null && RemoveManualPageBreaks.Contains(iid)) annot = "Removed Trailing Newlines, Spaces and ManualPageBreak";
string tmp = Regex.Replace(iitmp.MyContent.Text, "(\\\\line|\r|\n|\\\\u160\\?| )+$", "");
// if the step ends up empty, set the text to a space (if null or "") step gets deleted. Also, flag
// that this is an emtpy step so that print can handle it, i.e. when text is set for step during printing,
// if it is emtpy the string is "", which prints without height. This is flagged so that the pdf will
// look the same, i.e. printed when trailing newlines/spaces are removed (text = "") & after the changes
// are saved (text = " ")
if (tmp == null || tmp == "")
{
StepConfig sctmp = iitmp.MyConfig as StepConfig;
if (sctmp == null) sctmp = new StepConfig();
sctmp.Step_EmptyStep = true;
annot = "Empty step. Consider deleting to restore standard pagination.";
using (Item itm = Item.Get(iid))
{
VEPROMS.CSLA.Library.Annotation x = VEPROMS.CSLA.Library.Annotation.MakeAnnotation(itm, AnnotationType.GetByNameOrCreate("Manual Pagination Issues"), null, annot, null);
itm.MyContent.Config = sctmp.ToString();
itm.MyContent.Text = " ";
itm.MyContent.DTS = DateTime.Now;
itm.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
itm.MyContent.Save();
}
}
else
{
using (Item itm = Item.Get(iid))
{
VEPROMS.CSLA.Library.Annotation x = VEPROMS.CSLA.Library.Annotation.MakeAnnotation(itm, AnnotationType.GetByNameOrCreate("Manual Pagination Issues"), null, annot, null);
itm.MyContent.Text = tmp;
itm.MyContent.DTS = DateTime.Now;
itm.MyContent.UserID = Volian.Base.Library.VlnSettings.UserID;
itm.MyContent.Save();
}
}
}
}
}
}
}
public class ReaderHelper
{

View File

@ -5403,7 +5403,9 @@ namespace Volian.Print.Library
{
int profileDepth = ProfileTimer.Push(">>>> GetRtf");
_RtfSB = new StringBuilder();
DisplayText vlntxt = new DisplayText(itemInfo, E_EditPrintMode.Print, E_ViewMode.View, true, E_FieldToEdit.StepText, false, prefix, suffix, MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndManualPageBreaks);
DisplayText vlntxt = new DisplayText(itemInfo, E_EditPrintMode.Print, E_ViewMode.View, true, E_FieldToEdit.StepText, false, prefix, suffix, MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces != null);
// C2021-010: Remove trailing returns/spaces & manual page breaks & allow save.
if (DisplayText.RemoveTrailingBlankID > 0 && !MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Contains(itemInfo.ItemID)) MyPageHelper.MyPromsPrinter.RemoveTrailingHardReturnsAndSpaces.Add(DisplayText.RemoveTrailingBlankID);
System.Drawing.Font myFont = vlntxt.TextFont.WindowsFont;
if (!itemInfo.IsTable && StepRTB.MyFontFamily != null)
// follow through in fixing an Out of Window Handles bug, use new function to see if