C# 利用Aspose.Cells .dll将本地excel文档转化成pdf(完美破解版 无水印 无中文乱码)

Aspose.Cells .dll下载  http://pan.baidu.com/s/1slRENLF并引用

C#代码

 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Aspose.Cells; namespace exceltopdf
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
} private void button1_Click(object sender, EventArgs e)
{ //Create a new Workbook
//Open an Excel file
Workbook wb = new Workbook(@"E:\work\dll\officetopdf\file1\123.xls"); //Save the excel file to PDF format
wb.Save(@"E:\work\dll\officetopdf\file2\temp2.pdf", SaveFormat.Pdf); }
}
}
上一篇:Tumblr:我们是如何从 PHP 5 升级到 PHP 7 的


下一篇:linux的性能优化