how i can Convert excel work shet as array to pdf
Loading
how i can Convert excel work shet as array to pdf
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marvin ReidPosted Sep 6, 2023, 5:50 PM
You can convert Excel to PDF using the DocumentConverter. Here is some code that you can try:
https://www.leadtools.com/help/sdk/tutorials/dotnet-console-convert-files-with-the-document-converter.html
Cr BhargaviPosted Aug 29, 2023, 3:34 AM
Leon DPosted Aug 29, 2023, 2:29 AM
You can use Free Spire.XLS to convert Excel to PDF.
https://www.e-iceblue.com/Download/download-excel-for-net-free.html
You can also install the library via NuGet: Install-Package FreeSpire.XLS
The example below shows how to convert an Excel worksheet as PDF:
The above code snippet uses the Workbook.LoadFromFile() method to load an Excel file from disk, you are also able to load an Excel file from stream by using the Workbook.LoadFromStream() method.
For more information, check the following article:
https://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Excel-Conversion/NET-Excel-New-method-of-Convert-Excel-to-PDF.html
Mohammad HussainPosted Aug 28, 2023, 8:58 AM
Prasad RaveendranPosted Aug 27, 2023, 4:23 PM
You need to install the iTextSharp library from NuGet. Open the NuGet Package Manager Console and run:
Create a C# console application and add the following code to your program:
Remember to replace
"your_excel_file.xlsx"with the path to your Excel file,"Sheet1"with the name of the sheet you want to convert, and"output.pdf"with the desired output PDF file name.This code reads the Excel data, creates a PDF document, and populates it with the data in a tabular format using iTextSharp.