Allow approval to work if no existing approved versions

Try too set margins if bottom margin is undefined for MSWord section
Corrected comment
This commit is contained in:
Rich
2012-06-15 16:41:39 +00:00
parent 0927762693
commit 25db26519e
3 changed files with 22 additions and 5 deletions

View File

@@ -784,6 +784,20 @@ namespace VEPROMS.CSLA.Library
myDoc.PageSetup.LeftMargin = newLeft;
myDoc.PageSetup.TopMargin = newTop;
}
else
{
try
{
myDoc.PageSetup.BottomMargin = 0; // 11 * 72 - (newTop + newLength);
myDoc.PageSetup.RightMargin = newRight;
myDoc.PageSetup.LeftMargin = newLeft;
myDoc.PageSetup.TopMargin = newTop;
}
catch (Exception ex)
{
_MyLog.Error("Could not set margins", ex);
}
}
}
else
{