,新建C#控制台应用程序(Excel创建图表) using System; using System.Collections.Generic; using System.Linq; using System.Text; //解决方案中 添加引用 Execl(COM组件) using MSExcel = Microsoft.Office.Interop.Excel; using System.IO; using System.Reflection; namespace ExeclCharts {
前面两篇博客讲解了怎么通过程序控制word的生成,包括生成文字.添加表格.添加图片等.这篇博客主要说一下怎么把word图片转换成pdf. using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.Office.Core; namespace PDFTest { class PDFUtil { /// <summary> /// 把Word文件转换成为