diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index 9ee3896e..4ae0d6ac 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -159,8 +159,17 @@ namespace Volian.Controls.Library private string CreateRtf(bool colorLinks, string text, bool tableShouldBeOutlined, bool wordsShouldBeReplaced, bool numbersShouldBeFormated, bool tableHasBorder, bool ROsShouldBeAdjusted) { // Adjust RO display - if (ROsShouldBeAdjusted) - text = DoROAdjustments(text); + if (ROsShouldBeAdjusted) + { + try // Added try/catch because an unresolved RO Link was causing a failure. + { + text = DoROAdjustments(text); + } + catch (Exception ex) + { + _MyLog.Error("DisplayText.CreateRTF Error doing DoROAdjustments", ex); + } + } // if in print mode, view mode, or non-active richtextbox do replace words. Only if in // actual edit mode are replace words left as is. if (wordsShouldBeReplaced)