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

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


C#.NET Excel to JPEG Converting & Conversion Control




Excel to JPEG Conversion Overview



RasterEdge Excel to JPEG converting control SDK (XDoc.Excel for .NET) supports converting Excel document to JPEG image file in .NET developing platforms using simple C# programming code. JPEG image file, owing to its small-size feature, is counted as a more suitable choice for publishing in web services than Excel document file.


Related .net document control helps:
asp.net document viewer in c#: EdgeDoc ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online using ASP.NET Web Con...
c# asp.net document viewer: ASP.NET Document Viewer Control in C#: View, Annotate, Redact web document files in ASP.NET using C#
asp.net pdf editor using c#: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net convert pdf using c#: ASP.NET Convert PDF Control: Convert, export PDF to Word, HTML, Tiff files in C# ASP.NET
c# asp.net webforms document viewer: ASP.NET WebForms application document viewer control: view, annotate, redact, convert files online in ASP.NET
c# asp.net dnn document viewer: DNN Document Viewer Control: view, annotate, redact, convert documents in dotnetnuke ASP.NET
c# asp.net word document viewer: ASP.NET Office Word Document Viewer: view MS Office Word files online using C# in ASP.NET web applications


Using this C#.NET Excel to JPEG conversion library component toolkit, C# developers can easily and quickly convert a large-size multi-page Excel document to a group of high-quality separate JPEG image files within .NET projects, including ASP.NET web and Window Forms applications.


When using RasterEdge Excel to JPEG converter library control SDK, C# developers may customize the names of all converted JPEG image files in .NET class application. In the following example, this C#.NET Excel to JPEG converter library will name the converted JPEG image file Output.jpg.




Convert Excel to JPEG Using C#.NET



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


Using namespaces:


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Excel;


Copy demo code below to achieve fast conversion from Excel file to Jpeg image in C# programming.




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

// Get the first page of Excel file.
XLSXPage page = (XLSXPage)doc.GetPage(0);

// Convert the first Excel page to a JPEG file.
page.ConvertToImage(ImageType.JPEG, Program.RootPath + "\\Output.jpg");