Introduction:
In this article,i am going to explain about how o convert a excel file into pdf using aspose dll.
Main:
For Converting excel into pdf,first we need aspose.pdf dll.We can download the aspose dll from this url,
http://www.aspose.com/community/files/default.aspx.
Sample Code for Converting excel into pdf:
// Saving an XLS file in Aspose.Pdf xml format
Workbook local_workbook = new Workbook();
local_workbook.Open("C:\Sample.xls);
local_workbook.Save("C:\xls2pdf.xml", FileFormatType.AsposePdf);
// Converting XLS file to PDF through Aspose.Pdf using Aspose.Pdf xml file as a medium
Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf();
pdf.BindXML("c:\xls2pdf.xml", null);
pdf.Save("C:\xls2pdf.pdf");
// Saving an XLS file in Aspose.Pdf xml format Workbook local_workbook = new Workbook(); local_workbook.Open("C:\Sample.xls); local_workbook.Save("C:\xls2pdf.xml", FileFormatType.AsposePdf); // Converting XLS file to PDF through Aspose.Pdf using Aspose.Pdf xml file as a medium Aspose.Pdf.Pdf pdf = new Aspose.Pdf.Pdf(); pdf.BindXML("c:\xls2pdf.xml", null); pdf.Save("C:\xls2pdf.pdf"); |
Conclusion:
Hope this helps,
Happy Coding.
Even though I recognize your position I can’t truly agree with what you have stated in this article.
You’re making a few valid details in your write-up and would probably accept many.
Thank you for spending some time to write this. I appreciate where you are coming from with this post yet somehow I do think there presently exist more advantageous ways and means.
Bookmarked your website. Thank you for sharing. Definitely worth the time away from the books.
Very good information, could you maybe expand on this topic in the next post…Thank You.
Many thanks for that nice write-up, that must have taken a long time to put together with really good info.
A lot of fantastic ideas to not spend as much
Thanks a lot for the blog article.Really looking forward to read more. Fantastic.