只要把aspose.words.dll 在bin中添加引用即可。
namespace NewConvertBook
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
//讀取doc文檔
Document doc = new Document(@"C:/Users/Administrator/Desktop/流調系統存在問題 .doc");
//保存為PDF文件,此處的SaveFormat支持很多種格式,如圖片,epub,rtf 等等
doc.Save("temp.pdf", SaveFormat.Pdf);
}
}
}
Aspose.Words.dll 官網http://www.aspose.com/。具體其他用法可以參考api及文檔。
新聞熱點
疑難解答