C2021-010: Print using standard pagination rules by removing trailing hard returns, spaces & manual page breaks
This commit is contained in:
@@ -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)]
|
||||
|
Reference in New Issue
Block a user