C2018-014 rename Compare PDF checkbox to Overlay PDF, rename Meta File check box to Baseline Testing, added tool tips

C2018-015 add PROMS version number, SQL server name, database name, procedure folder tree info, procedure number and title to meta file.
C2018-015 add debug pagination info to meta file
This commit is contained in:
John Jenko 2018-05-02 19:21:19 +00:00
parent b5787b153c
commit aadb3c718a
6 changed files with 137 additions and 9 deletions

View File

@ -110,6 +110,8 @@ namespace VEPROMS
this.btnPdfLocation.Name = "btnPdfLocation";
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));
this.btnPdfLocation.TabIndex = 100;
this.btnPdfLocation.Click += new System.EventHandler(this.btnPdfLocation_Click);
//
@ -122,10 +124,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(469, 126);
this.gpnlDebug.Location = new System.Drawing.Point(440, 126);
this.gpnlDebug.Margin = new System.Windows.Forms.Padding(2);
this.gpnlDebug.Name = "gpnlDebug";
this.gpnlDebug.Size = new System.Drawing.Size(90, 97);
this.gpnlDebug.Size = new System.Drawing.Size(119, 97);
//
//
//
@ -164,9 +166,11 @@ namespace VEPROMS
this.cbxMetaFile.Location = new System.Drawing.Point(8, 51);
this.cbxMetaFile.Margin = new System.Windows.Forms.Padding(2);
this.cbxMetaFile.Name = "cbxMetaFile";
this.cbxMetaFile.Size = new System.Drawing.Size(69, 17);
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;
this.cbxMetaFile.Text = "Meta File";
this.cbxMetaFile.Text = "Baseline Testing";
this.cbxMetaFile.UseVisualStyleBackColor = false;
//
// cbxDebugText
@ -177,6 +181,8 @@ namespace VEPROMS
this.cbxDebugText.Margin = new System.Windows.Forms.Padding(2);
this.cbxDebugText.Name = "cbxDebugText";
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;
this.cbxDebugText.Text = "Text";
this.cbxDebugText.UseVisualStyleBackColor = false;
@ -189,6 +195,8 @@ namespace VEPROMS
this.cbxDebugPagination.Margin = new System.Windows.Forms.Padding(2);
this.cbxDebugPagination.Name = "cbxDebugPagination";
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;
this.cbxDebugPagination.Text = "Pagination";
this.cbxDebugPagination.UseVisualStyleBackColor = false;
@ -270,6 +278,7 @@ namespace VEPROMS
this.calDateSelector.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground;
this.calDateSelector.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
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";
this.calDateSelector.Visible = false;
@ -283,7 +292,7 @@ namespace VEPROMS
//
//
this.pbPDFsStatus.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.pbPDFsStatus.Location = new System.Drawing.Point(8, 238);
this.pbPDFsStatus.Location = new System.Drawing.Point(8, 241);
this.pbPDFsStatus.Name = "pbPDFsStatus";
this.pbPDFsStatus.Size = new System.Drawing.Size(575, 23);
this.pbPDFsStatus.TabIndex = 87;
@ -301,6 +310,7 @@ namespace VEPROMS
this.txbReviewDate.Margin = new System.Windows.Forms.Padding(2);
this.txbReviewDate.Name = "txbReviewDate";
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);
this.txbReviewDate.Leave += new System.EventHandler(this.txbReviewDate_Leave);
@ -316,6 +326,7 @@ namespace VEPROMS
this.txbRevDate.Margin = new System.Windows.Forms.Padding(2);
this.txbRevDate.Name = "txbRevDate";
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);
this.txbRevDate.Leave += new System.EventHandler(this.txbRevDate_Leave);
@ -333,6 +344,7 @@ namespace VEPROMS
this.txbPDFLocation.Margin = new System.Windows.Forms.Padding(2);
this.txbPDFLocation.Name = "txbPDFLocation";
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";
this.txbPDFLocation.Leave += new System.EventHandler(this.txbPDFLocation_Leave);
@ -348,6 +360,7 @@ namespace VEPROMS
this.cbxOpenAfterCreate2.Margin = new System.Windows.Forms.Padding(2);
this.cbxOpenAfterCreate2.Name = "cbxOpenAfterCreate2";
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";
this.cbxOpenAfterCreate2.UseVisualStyleBackColor = false;
@ -368,6 +381,8 @@ namespace VEPROMS
this.cbxOverwritePDF2.Margin = new System.Windows.Forms.Padding(2);
this.cbxOverwritePDF2.Name = "cbxOverwritePDF2";
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;
this.cbxOverwritePDF2.Text = "Overwrite PDF File";
this.cbxOverwritePDF2.UseVisualStyleBackColor = false;
@ -383,6 +398,7 @@ namespace VEPROMS
this.txbRevNum.Margin = new System.Windows.Forms.Padding(2);
this.txbRevNum.Name = "txbRevNum";
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);
//
@ -446,6 +462,8 @@ namespace VEPROMS
this.txbPDFName.Location = new System.Drawing.Point(116, 61);
this.txbPDFName.Name = "txbPDFName";
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;
//
// lblPDFFileName
@ -512,6 +530,8 @@ namespace VEPROMS
this.cbxMultiunitPdfLocation.Margin = new System.Windows.Forms.Padding(2);
this.cbxMultiunitPdfLocation.Name = "cbxMultiunitPdfLocation";
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;
this.cbxMultiunitPdfLocation.Visible = false;
this.cbxMultiunitPdfLocation.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -549,6 +569,7 @@ namespace VEPROMS
this.lblWatermarkS.Margin = new System.Windows.Forms.Padding(2);
this.lblWatermarkS.Name = "lblWatermarkS";
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";
//
@ -564,6 +585,7 @@ namespace VEPROMS
this.cbxWaterMark.Margin = new System.Windows.Forms.Padding(2);
this.cbxWaterMark.Name = "cbxWaterMark";
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;
this.cbxWaterMark.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
@ -580,6 +602,7 @@ namespace VEPROMS
this.btnCreatePDF.Name = "btnCreatePDF";
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;
this.btnCreatePDF.Text = "Create PDF";
this.btnCreatePDF.Click += new System.EventHandler(this.btnCreatePDF_Click);
@ -597,6 +620,7 @@ namespace VEPROMS
this.btnCancel.Name = "btnCancel";
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;
this.btnCancel.Text = "Cancel";
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
@ -613,9 +637,10 @@ namespace VEPROMS
this.cbxDebug.Location = new System.Drawing.Point(11, 299);
this.cbxDebug.Margin = new System.Windows.Forms.Padding(2);
this.cbxDebug.Name = "cbxDebug";
this.cbxDebug.Size = new System.Drawing.Size(113, 20);
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 = "Compare PDF";
this.cbxDebug.Text = "Overlay PDF";
this.cbxDebug.UseVisualStyleBackColor = false;
//
// cbxOrPgBrk
@ -650,6 +675,7 @@ namespace VEPROMS
this.cbxRemoveManualPageBreaks.Margin = new System.Windows.Forms.Padding(2);
this.cbxRemoveManualPageBreaks.Name = "cbxRemoveManualPageBreaks";
this.cbxRemoveManualPageBreaks.Size = new System.Drawing.Size(350, 20);
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;
@ -682,6 +708,8 @@ namespace VEPROMS
this.labelX5.Location = new System.Drawing.Point(92, 187);
this.labelX5.Name = "labelX5";
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;
this.labelX5.Text = "Change Bars";
//
@ -775,6 +803,8 @@ namespace VEPROMS
//
//
this.ppGpbxUserSpecTxt.StyleMouseOver.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.superTooltip1.SetSuperTooltip(this.ppGpbxUserSpecTxt, new DevComponents.DotNetBar.SuperTooltipInfo("Custom Change Bar Text", "", "Enter up to two lines of text (suggest no more than three characters per line). " +
"This will be printed next to each change bar (step editor sections only)", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 104)));
this.ppGpbxUserSpecTxt.TabIndex = 51;
this.ppGpbxUserSpecTxt.Text = "Custom Change Bar Text";
//
@ -833,6 +863,8 @@ namespace VEPROMS
this.ppCmbxChgBarTxtType.Margin = new System.Windows.Forms.Padding(2);
this.ppCmbxChgBarTxtType.Name = "ppCmbxChgBarTxtType";
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;
this.ppCmbxChgBarTxtType.WatermarkFont = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic))), System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.ppCmbxChgBarTxtType.WatermarkText = "select change bar text type";
@ -860,6 +892,8 @@ namespace VEPROMS
this.cbxOvrrideDefChgBars.Margin = new System.Windows.Forms.Padding(2);
this.cbxOvrrideDefChgBars.Name = "cbxOvrrideDefChgBars";
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;
this.cbxOvrrideDefChgBars.Text = "Overwrite Change Bar Text Type";
this.cbxOvrrideDefChgBars.UseVisualStyleBackColor = false;
@ -876,6 +910,8 @@ namespace VEPROMS
this.lblGeneratePlacekeeper.Location = new System.Drawing.Point(93, 155);
this.lblGeneratePlacekeeper.Name = "lblGeneratePlacekeeper";
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;
this.lblGeneratePlacekeeper.Text = "Generate Placekeeper";
this.lblGeneratePlacekeeper.Visible = false;
@ -933,6 +969,7 @@ namespace VEPROMS
this.labelX3.Location = new System.Drawing.Point(93, 126);
this.labelX3.Name = "labelX3";
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";
//
@ -960,6 +997,9 @@ namespace VEPROMS
this.labelX2.Location = new System.Drawing.Point(93, 68);
this.labelX2.Name = "labelX2";
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));
this.labelX2.TabIndex = 110;
this.labelX2.Text = "Add Blank Pages For Duplex Printing";
//
@ -987,6 +1027,8 @@ namespace VEPROMS
this.labelX1.Location = new System.Drawing.Point(93, 39);
this.labelX1.Name = "labelX1";
this.labelX1.Size = new System.Drawing.Size(112, 23);
this.superTooltip1.SetSuperTooltip(this.labelX1, new DevComponents.DotNetBar.SuperTooltipInfo("PDF Links", "", "Will create live hyperlinks for transitions and Referenced Objects in the generat" +
"ed PDF file. See chapter C.3 in the PROMS user manual for details.", null, null, DevComponents.DotNetBar.eTooltipColor.Gray, true, true, new System.Drawing.Size(170, 105)));
this.labelX1.TabIndex = 108;
this.labelX1.Text = "PDF Links";
//

View File

@ -558,6 +558,9 @@ namespace VEPROMS
pbPDFsStatus.Value = i;
// this.Text = string.Format("Create PDF for {0} ({1} of {2})", myProc.DisplayNumber, ++i, n);
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
// C2018-015 add the procedure tree path and the procedure number and title to the meta file
if (BaselineMetaFile.IsOpen && i == 1) BaselineMetaFile.WriteLine("!! {0}", MyProcedure.SearchDVPath.Replace("\a", " | "));
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0} | {1}", MyProcedure.DisplayNumber, MyProcedure.DisplayText);
string myPDFPath = GetMultiunitPDFPath();
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked,
@ -581,6 +584,9 @@ namespace VEPROMS
pbPDFsStatus.Value = i;
// this.Text = string.Format("Create PDF for {0} ({1} of {2})", myProc.DisplayNumber, ++i, n);
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
// C2018-015 add the procedure tree path and the procedure number and title to the meta file
if (BaselineMetaFile.IsOpen && i == 1) BaselineMetaFile.WriteLine("!! {0}", MyProcedure.SearchDVPath.Replace("\a", " | "));
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0} | {1}", MyProcedure.DisplayNumber, MyProcedure.DisplayText);
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
// B2016-249 Output Procedure to folder associated with Parent Child
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked,
@ -607,6 +613,9 @@ namespace VEPROMS
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
else
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
// C2018-015 add the procedure tree path and the procedure number and title to the meta file
if (BaselineMetaFile.IsOpen && i == 1) BaselineMetaFile.WriteLine("!! {0}", MyProcedure.SearchDVPath.Replace("\a", " | "));
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0} | {1}", MyProcedure.DisplayNumber, MyProcedure.DisplayText);
ProfileTimer.Pop(profileDepth1);
// B2016-249 Output Procedure to folder associated with Parent Child
frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked,
@ -659,7 +668,11 @@ namespace VEPROMS
if (cbxDebugText.Checked)
Volian.Base.Library.DebugText.Open(PDFPath + "\\DebugText.txt");
if (cbxMetaFile.Checked) // C2018-004 create meta file for baseline compares
{
Volian.Base.Library.BaselineMetaFile.Open(PDFPath + "\\DebugMeta.txt");
// C2018-015 add the PROMS Version, SQL Server, and Database to top of the meta file
Volian.Base.Library.BaselineMetaFile.WriteLine("!! Ver {0} {1} {2}", AboutVEPROMS.PROMSVersion, AboutVEPROMS.SQLServerName, AboutVEPROMS.DatabaseName);
}
Rtf2Pdf._lastPageNum = 0; // reset page number
}
private void ShowDebugFiles()
@ -696,6 +709,9 @@ namespace VEPROMS
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
else
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
// C2018-015 add the procedure tree path and the procedure number and title to the meta file
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0}", MyProcedure.SearchDVPath.Replace("\a"," | "));
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0} | {1}", MyProcedure.DisplayNumber, MyProcedure.DisplayText);
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
ProfileTimer.Pop(profileDepth2);
// B2016-249 Output Procedure to folder associated with Parent Child

View File

@ -130,15 +130,59 @@
hlo4Hihl2t0oKjsmIdRQC4d9JUz19SPbLBJCDbVw0GPiA4ZQ2TYLoYZacHcVSxzLk2R8ivwgfAOkg8se
rIQcQAAAAABJRU5ErkJggg==
</value>
</data>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>549, 17</value>
</metadata>
<data name="txbReviewDate.SuperTooltip" xml:space="preserve">
<value>This will be printed on the pages defined by the procedure's format.
A calendar will display for the selection of the date.
The value entered here will be saved and displayed the next time this procedure is printed.</value>
</data>
<data name="txbRevDate.SuperTooltip" xml:space="preserve">
<value>This will be printed on the pages defined by the procedure's format.
A calendar will display for the selection of the date.
The value entered here will be saved and displayed the next time this procedure is printed.</value>
</data>
<data name="txbPDFLocation.SuperTooltip" xml:space="preserve">
<value>This is the default location that PROMS will place the generated PDF files.
The default location can be set on the property page of the "WorkingDraft" tree node (left panel). If a default location is not specified, the PDFs will be placed in the Windows default temporary location for that user.
A different location can be entered (or navigated to via the button to the right), but will be only for this session.</value>
</data>
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value>
</metadata>
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>321, 17</value>
</metadata>
<data name="txbRevNum.SuperTooltip" xml:space="preserve">
<value>This will be printed on the pages defined by the procedure's format. For example, on cover pages and in the header box of each page.
The value entered here will be saved and displayed the next time this procedure is printed.</value>
</data>
<metadata name="DlgBrowseFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>153, 17</value>
</metadata>
<metadata name="superTooltip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>549, 17</value>
<data name="cbxDebug.SuperTooltip" xml:space="preserve">
<value>PROMS overlay the printed procedure on top of a previously printed procedure. The previously printed procedure needs to have the same file name and it must be placed in a sub-folder named "compare".
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.
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>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>40</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>40</value>

View File

@ -747,6 +747,7 @@ namespace Volian.Print.Library
_MyLog.ErrorFormat("<<< ERROR >>> Forced Pagination\r\n==>'Forced Pagination',{0},'{1}','{2}'"
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath);
if(DebugPagination.IsOpen) DebugPagination.WriteLine("=====>,'Yes','Forced Pagination',{0},{1},,{3},'{4}'", MyItemInfo.ItemID, YSize, 0, yLocation, MyItemInfo.ShortPath);
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! =====>,'Yes','Forced Pagination',{0},{1},,{3},'{4}'", MyItemInfo.ItemID, YSize, 0, yLocation, MyItemInfo.ShortPath); //C2018-015 add debug pagination to meta file
if (MyPromsPrinter.SupInfoPrintType == E_SupInfoPrintType.Merge && MyPageHelper.CreatingSupInfoPage)
MyPromsPrinter.SupInfoPdfPageCount++; // this adjusts the page count offset when Forced Pagination occures in a SupInfo page
retval = Rtf2Pdf.TextAt(cb, IParagraph, XOffset, yLocation, Width, 100, DebugInfo, yBottomMargin, MyItemInfo.ItemID); // C2018-004 ItemID for create meta file for baseline compares
@ -765,6 +766,14 @@ namespace Volian.Print.Library
MyItemInfo.ItemID, YSize, yPageSize, yWithinMargins, (int)(100 * yWithinMargins / yPageSize),
hasBox, rnoSepIn
);
//C2018-015 add debug pagination to meta file
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0:D6},'{1}',{2},'{3}','{4}',{5},{6},{7},{8},{9},{10},{11}",
MyPageHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber - (breakOrNot == "Yes" ? 0 : 1),
MyItemInfo.ShortPath, instance,
(manualPageBreak ? "Manual " : "") + message, breakOrNot,
MyItemInfo.ItemID, YSize, yPageSize, yWithinMargins, (int)(100 * yWithinMargins / yPageSize),
hasBox, rnoSepIn
);
}
// Console.WriteLine("{0},{1}", MyItemInfo.DBSequence, IsFirstSubStep(MyItemInfo)); //,instance);
}
@ -982,6 +991,11 @@ namespace Volian.Print.Library
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath, YSize - yTop, ySpaceOnCurPageSave);
_MyLog.ErrorFormat("<<< ERROR >>> Cannot find a place to break\r\n==>'Cannot Find Place to Break',{0},'{1}','{2}'"
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath);
//C2018-015 add debug pagination to meta file
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! <<< ERROR >>> Cannot find a place to break ==>,{0},'{1}','{2}',{3},{4}"
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath, YSize - yTop, ySpaceOnCurPageSave);
_MyLog.ErrorFormat("<<< ERROR >>> Cannot find a place to break\r\n==>'Cannot Find Place to Break',{0},'{1}','{2}'"
, MyItemInfo.ItemID, MyItemInfo.MyDocVersion.MyFolder.Name, MyItemInfo.ShortPath);
break;
}
//if (paraBreak.MyItemInfo.InList(54615, 54620) || MyItemInfo.InList(54573))
@ -1037,6 +1051,7 @@ namespace Volian.Print.Library
&& paraBreak.MyParent.MyItemInfo.FormatStepData.UseSmartTemplate) // my parent has the checklist header
{
if (DebugPagination.IsOpen) DebugPagination.WriteLine("Breaking at parent of {0}", paraBreak.MyItemInfo.DisplayText);
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! Breaking at parent of {0}", paraBreak.MyItemInfo.DisplayText); //C2018-015 add debug pagination to meta file
paraBreak = paraBreak.MyParent;
}
}

View File

@ -945,6 +945,9 @@ namespace Volian.Print.Library
//_MyLog.InfoFormat("NewPage 2 {0}", cb.PdfWriter.CurrentPageNumber);
if (DebugPagination.IsOpen) DebugPagination.WriteLine("{0:D6},'{1}'",
_MyHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, "No PROMS Output");
//C2018-015 add debug pagination to meta file
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0:D6},'{1}'",
_MyHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, "No PROMS Output");
}
}
OnStatusChanged(myProcedure.DisplayNumber + " PDF Creation Completed", PromsPrinterStatusType.Progress, progress);
@ -1114,6 +1117,8 @@ namespace Volian.Print.Library
AddImportedPageToLayer(cb.PdfWriter.DirectContent, _MSWordLayer, fgPage, (float)(mySection.MyDocStyle.Layout.MSWordXAdj ?? 0), (float)(mySection.MyDocStyle.Layout.MSWordYAdj ?? 0) + yoff);
if(DebugPagination.IsOpen) DebugPagination.WriteLine("{0:D6},'{1}',{2}",
_MyHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, mySection.ShortPath,pageNumber);
//if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0:D6},'{1}',{2}",
// _MyHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, mySection.ShortPath,pageNumber);
}
if (ii == sectPageCount - 1)
@ -2182,6 +2187,8 @@ namespace Volian.Print.Library
if (DebugPagination.IsOpen) DebugPagination.WriteLine("{0:D6},'{1}',{2}",
myPageHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, "Foldout", 1);
//if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! {0:D6},'{1}',{2}",
//myPageHelper.MyPdfContentByte.PdfWriter.CurrentPageNumber, "Foldout", 1);
}
}
//_MyLog.InfoFormat("DoFoldoutPage {0}", cb.PdfWriter.CurrentPageNumber);

View File

@ -992,6 +992,9 @@ namespace Volian.Print.Library
{
if (DebugPagination.IsOpen)
DebugPagination.WriteLine("Very Low {0},{1},{2},{3},{4},{5}", MyItemInfo.ShortPath, MyItemInfo.ItemID, yLocation, Height, yLocation - Height, yTopMargin - MyItemInfo.MyDocStyle.Layout.PageLength);
//C2018-015 add debug pagination to meta file
if (BaselineMetaFile.IsOpen)
BaselineMetaFile.WriteLine("!! Very Low {0},{1},{2},{3},{4},{5}", MyItemInfo.ShortPath, MyItemInfo.ItemID, yLocation, Height, yLocation - Height, yTopMargin - MyItemInfo.MyDocStyle.Layout.PageLength);
}
int profileDepth = ProfileTimer.Push(">>>> Rtf2Pdf.TextAt");
// ooooooooo. oooooooooo. oooooooooooo ooooooooooooo o8o . o8o
@ -1429,6 +1432,7 @@ namespace Volian.Print.Library
}
MyPageHelper.DidFirstPageDocStyle = true;
if (DebugPagination.IsOpen) DebugPagination.WriteLine("ResetDocStyleAndValues");
if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! ResetDocStyleAndValues"); //C2018-015 add debug pagination to meta file
if (!reassignedDocStyle) // C2018-004 create meta file for baseline compares
MyPageHelper.MySection = (SectionInfo)MyItemInfo.MyActiveSection;
yTopMargin = _PointsPerPage - (float)MyItemInfo.MyActiveSection.MyDocStyle.Layout.TopMargin;