VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or

by aspose_seo (5 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Sat 12th April 2008
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.

Rate This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or




// 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")

Download this snippet    Add to My Saved Code

This technical tip shows how to convert an Excel XLS file to PDF even if it contains any images or Comments

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 .

Post your comment

Subject:
Message:
0/1000 characters