aspose 模板输出

                Dictionary<string, string> dictionnaryBig = new Dictionary<string, string>();
                dictionnaryBig.Add("bianhao", NO);
                dictionnaryBig.Add("yingwenming", companyEnName);
                dictionnaryBig.Add("zhongwenming", companyName);
                dictionnaryBig.Add("wangzhi", Url);
                dictionnaryBig.Add("Assessor", Assessor);
                dictionnaryBig.Add("ReportDate", ReportDate);
                dictionnaryBig.Add("ValidFrom", PeriodStart);
                dictionnaryBig.Add("ValidTo", PeriodEnd);
                dictionnaryBig.Add("ZhuTiCNName", ZhuTiCNName);
                dictionnaryBig.Add("Assessorment", Assessorment);
                dictionnaryBig.Add("SupplierCompany", SupplierCompany);

                foreach (var item in dictionnaryBig)
                {
                    var key = string.Format("&{0}&", item.Key);
                    docBig.Range.Replace(key, item.Value, false, false);
                }
                docBig.Save(GetFileLastPath + "\\Medal\\" + ZhuTiCNName + "-股份关联-大.doc");

  

posted on 2017-04-13 17:01  雪原日暮  阅读(105)  评论(0编辑  收藏  举报