Esempio n. 1
0
        public void ReplaceTemplate()
        {
            WordTemplate template           = new WordTemplate();
            Dictionary <string, string> dic = new Dictionary <string, string>();

            dic.Add("a0101", "123");
            dic.Add("b0110", "信息系统不");
            template.ReplaceTemplate("E:\\离职交接表.docx", "E:\\离职交接表1.docx", dic);

            Assert.True(true);
        }
Esempio n. 2
0
        public void PrintWordTemplate(string templateFile, string outputFile, IDictionary <string, string> keyValues)
        {
            WordTemplate wordTemplate = new WordTemplate();

            wordTemplate.ReplaceTemplate(templateFile, outputFile, keyValues);
        }