C#: Online Guide
How To: excel SDK
Convert Excel to PDF
Convert Excel to PDF
  |  
Home ›› XDoc.Excel ›› C# Excel: Convert Excel to PDF

C# Excel - Convert Excel to PDF in C#.NET


Online C# Tutorial for Converting Excel to PDF (.pdf) Document




Excel to PDF Conversion Overview



RasterEdge Visual C# .NET Excel to PDF converter library control (XDoc.Excel) is a mature and effective Excel document converting utility. Using this Excel to PDF converting library control, .NET developers can quickly convert Excel document to PDF file using Visual C# code. vb.net create pdf, pdf compress in c#, vb.net code to extract text from pdf, add image to pdf using itextsharp vb.net, extract images from pdf using itextsharp in c#, c# read tiff file. This C#.NET Excel to PDF conversion library can help developers convert multi-page Excel document to multi-page PDF file.


Related .net document control helps:
asp.net excel view: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
asp.net edit pdf text color: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net dicom web viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
document viewer asp.net c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...


The most outstanding feature of this Excel to PDF converting toolkit is its industry-leading converting accuracy. The PDF file, converted by RasterEdge Excel to PDF converter toolkit, preserves the structure & layout of target Excel document, keeps the elements (like images, tables and chats) of original Excel file and maintains the original text style (including font, size, color, links and boldness). split pdf using itextsharp c#, c# get pdf font, add watermark to pdf using itextsharp c#, how to delete a page from a pdf in c#, get pdf page count vb.net, itextsharp remove text from pdf c#, c# draw pdf.


Why do we need this Excel to PDF converting library? In the daily-life applications, you often need to render and print Excel document content for certain purpose. how to add header and footer in pdf using itextsharp in asp.net, asp.net add text to pdf file, pdf viewer in asp.net web application, excel viewer asp.net c#, asp net core mvc pdf viewer download, pdf preview in asp net c# example, how to edit pdf file using itextsharp in asp.net. But without licensed third-party software, you can hardly print the Excel document as the original style. Under this situation, you need to convert Excel document to some image format document.


RasterEdge XDoc.Excel empowers your C#.NET application with advanced Excel to PDF conversion functionality.




C# Demo: Convert Excel to PDF Document



Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XDoc.PDF.dll


Using namespaces:


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Excel;


This is a C# programming example for converting Excel to PDF (.pdf) file.




// Load a Excel document.
String inputFilePath = Program.RootPath + "\\" + "1.xlsx";
XLSXDocument doc = new XLSXDocument(inputFilePath);

// Convert and output to a PDF file.
String outputFilePath = inputFilePath + ".pdf";
doc.ConvertToDocument(DocumentType.PDF, outputFilePath);