Example #1
0
        private void SetFinallyNotes(TestingProcessResultDto result, WordprocessingDocument document)
        {
            var name = "{{FinallyNotes}}";


            var text = document.MainDocumentPart.Document.Descendants <Text>().Where(t => t.Text == name).FirstOrDefault();

            if (text != null)
            {
                text.Text           = "";
                result.FinallyNotes = "注" + result.FinallyNotes;
                WordHelper.ComplexReplace((Paragraph)text.Parent.Parent, result.FinallyNotes, new char[] { 'U', 'k' });
            }
        }