by aspose_seo (5 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 18th February 2009
Date Added: Mon 8th February 2021
Rating: (1 Votes)
This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or charts within it.
// Saving an XLS file in Aspose.Pdf xml format
Workbook wb = new Workbook();
wb.Open("C:\\book1.xls);
wb.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");
[VB]
' Saving an XLS file in Aspose.Pdf xml format
Dim wb as Workbook = new Workbook()
wb.Open("C:\book1.xls)
wb.Save("C:\xls2pdf.xml", FileFormatType.AsposePdf)
' Converting XLS file to PDF through Aspose.Pdf using Aspose.Pdf xml file as a medium
Dim pdf as Aspose.Pdf.Pdf = new Aspose.Pdf.Pdf()
pdf.BindXML("c:\\xls2pdf.xml", null)
pdf.Save("C:\xls2pdf.pdf")
More about Aspose.Cells
Aspose.Cells Homepage: http://www.aspose.com/categories/file-format-components/aspose.cells-for-.net-and-java/default.aspx
Read more technical tips by Aspose.Cells: http://www.aspose.com/documentation/file-format-components/aspose.cells-for-.net-and-java/technical-tips.html
More about Aspose.Pdf
Aspose.Pdf Homepage: http://www.aspose.com/categories/file-format-components/aspose.pdf-for-.net-and-java/default.aspx
Read more technical tips by Aspose.Pdf: http://www.aspose.com/documentation/file-format-components/aspose.pdf-for-.net-and-java/technical-tips.html
Contact Information
Suite 119, 272 Victoria Avenue
Chatswood, NSW, 2067
Australia
http://www.aspose.com/
[email protected]
Phone: 888.277.6734
Fax: 866.810.9465l
No comments have been posted about This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or . Why not be the first to post a comment about This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or .