Aspose.cells. dll download Http://pan.baidu.com/s/1slRENLF and reference
C # code
1 usingSystem;2 usingSystem.Collections.Generic;3 usingSystem.ComponentModel;4 usingSystem.Data;5 usingSystem.Drawing;6 usingSystem.Linq;7 usingSystem.Text;8 usingSystem.Windows.Forms;9 usingAspose.cells;Ten One namespaceexceltopdf A { - Public Partial classForm1:form - { the PublicForm1 () - { - InitializeComponent (); - } + - Private voidButton1_Click (Objectsender, EventArgs e) + { A at //Create a new Workbook - //Open an Excel file -Workbook WB =NewWorkbook (@"E:\work\dll\officetopdf\file1\123.xls"); - - - //Save the Excel file to PDF format inWb. Save (@"E:\work\dll\officetopdf\file2\temp2.pdf", saveformat.pdf); - to } + } -}
C # uses Aspose.cells. dll to convert local Excel documents to PDF (perfect cracked version no watermark no Chinese garbled)