Replace ‘?’ with ‘_’ for pdf filename so file can be created

Allow for setting of section’s ‘Default Step Section’ property
Fix page numbering for {secondary page} page list token
This commit is contained in:
2015-02-09 14:05:22 +00:00
parent e0cd24b61d
commit 0e9302f206
4 changed files with 260 additions and 206 deletions

View File

@@ -310,6 +310,7 @@ namespace VEPROMS
if ((PDFFileName ?? "") == "") PDFFileName = "NoProcNumber";
if (PDFFileName.StartsWith("*"))
PDFFileName = PDFFileName.Replace("*", this.UnitNumber);
if (PDFFileName.Contains("?")) PDFFileName = PDFFileName.Replace("?", "_"); // for wcn sys/BM-2xxA??, etc
txbPDFName.Text = PDFFilePrefix + PDFFileName + PDFFileSuffix + ".pdf";
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
if(SelectedSlave > 0) pc.SelectedSlave = SelectedSlave;