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

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

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