C# 利用Aspose.Cells .dll将本地excel文档转化成pdf(完美破解版 无水印 无中文乱码)
Aspose.Cells .dll下载 http://pan.baidu.com/s/1slRENLF并引用
C#代码
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using Aspose.Cells; 10 11 namespace exceltopdf 12 { 13 public partial class Form1 : Form 14 { 15 public Form1() 16 { 17 InitializeComponent(); 18 } 19 20 private void button1_Click(object sender, EventArgs e) 21 { 22 23 //Create a new Workbook 24 //Open an Excel file 25 Workbook wb = new Workbook(@"E:\work\dll\officetopdf\file1\123.xls"); 26 27 28 //Save the excel file to PDF format 29 wb.Save(@"E:\work\dll\officetopdf\file2\temp2.pdf", SaveFormat.Pdf); 30 31 } 32 } 33 }