C2018-023 added a “/NW” switch for use with the automated print testing (batch file) to turn off the inclusion of Word attachment text in the metafile
This commit is contained in:
@@ -49,11 +49,13 @@ namespace VEPROMS
|
||||
get { return _Automatic; }
|
||||
set { _Automatic = value; }
|
||||
}
|
||||
private bool _IncludeWordSecTextInMetafile = true; // C2018-023 so that we can turn off including Word attachment text in metafile
|
||||
private void RunAutomatic()
|
||||
{
|
||||
cbxDebugPagination.Checked = true;
|
||||
cbxDebugText.Checked = true;
|
||||
cbxMetaFile.Checked = true; // C2018-004 create meta file for baseline compares
|
||||
_IncludeWordSecTextInMetafile = true;
|
||||
Application.DoEvents();
|
||||
string[] parameters = System.Environment.CommandLine.Split(" ".ToCharArray());
|
||||
bool ranAuto = false;
|
||||
@@ -67,6 +69,8 @@ namespace VEPROMS
|
||||
cbxDebug.Checked = false;
|
||||
else if (parameter.ToUpper() == "/NM")
|
||||
cbxMetaFile.Checked = false; // C2018-004 turn off create meta file for baseline compares
|
||||
else if (parameter.ToUpper() == "/NW")
|
||||
_IncludeWordSecTextInMetafile = false; // C2018-023 turn off putting Word attachment text in the meta file for baseline compares
|
||||
}
|
||||
CreatePDFs();
|
||||
this.Close();
|
||||
@@ -676,6 +680,8 @@ namespace VEPROMS
|
||||
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);
|
||||
// C2018-023 set as to whether we are going to include the Word attment text in the baseline metafile
|
||||
Volian.Base.Library.BaselineMetaFile.IncludeWordSecText = _IncludeWordSecTextInMetafile;
|
||||
}
|
||||
Rtf2Pdf._lastPageNum = 0; // reset page number
|
||||
}
|
||||
|
Reference in New Issue
Block a user