Пример #1
0
        public string ToHtml()
        {
            string s = "<font color=red>";

            foreach (System.CodeDom.Compiler.CompilerError ce in ces)
            {
                if (fms != null)
                {
                    FormulaProgram fpa = fms.GetProgramByLineNum(ce.Line);
                    if (fpa != null)
                    {
                        fpa.AdjustErrors(ce);
                        s += string.Format("Name:{0} line:{1} column:{2} error:{3} {4}<br>", fpa.Name, ce.Line, ce.Column, ce.ErrorNumber, ce.ErrorText);
                    }
                }
            }
            return(s + "</font>");
        }