Guide for C#
Core Document Formats
Excel to Other Raster Image Formats (Gif, Png, Jpeg)
Additional Features

C# Excel - Convert Excel to Other Raster Images

Render and Convert Excel to Raster(Gif, Png, Jpeg, Bmp) Images in C#.NET Project

Visual C#
Home > .NET Imaging SDK > C# > Excel to Other Raster Image Formats
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

Outline of Converting Excel to Raster Images in C#
Converting Microsoft Excel document to raster GIF image with our Excel to Raster Images Library SDK for C#.NET is an easy job. GIF refers to the Graphics Interchange Format and is a good format for graphics on the web. pdf read text, c# tiff, c# convert word to pdf programmatically, pdfsharp pdf to image, pdf sdk, preview pdf in c#. It is widely used on the web because of its extensive support and high portability.
Related .net document control helps: pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C# edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C# mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C# pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
Developers may use our .NET Excel to Raster Images Converter Control to convert Excel file to PNG image format in C#.NET application. PNG format is created as an improved substitute of GIF image format. itextsharp remove text from pdf c#, c# modify pdf metadata, c# rotate pdf pages, pdf compression library c#, c# extract pdf page as image, c# add text to existing pdf file, add text to pdf. It uses lossless compression that is especially suitable to master copy data. Meanwhile, PNG file integrates special preprocessing filters to promote lossless compression efficiency.
Our .NET Excel to Raster Images Conversion Tool completely allows for rendering Excel document to JPEG image format within C# project. JPEG image format is able to display millions of colors at one time. edit pdf, display image from base64 string, core pdf preview, mvc create pdf from view, pdf viewer control free, show excel file in browser, remove image from pdf file. As it uses lossy compression, it is necessary to consider the balance of quality and file size when setting the compression value in practical use. JPEG image is often used for photo images that must be small in size, like photos in an E-mail or on web sites.
In addition to GIF, PNG and JPEG, BMP is also supported by .NET Excel Document Conversion SDK. In brief, BMP also known as device independent bitmap (DIB) file format, which is able to store 2D digital images of arbitrary width, height and resolution. It can be monochrome or color, in various color depths, and optionally with data compression, alpha channels, and color profiles.
In the following sections, you will know more detailed information on Excel rendering to above raster images in C#.NET application, including:
  • Main functions of converting Excel to raster images in C#.NET
  • APIs used for Excel document rendering to raster images in C#.NET
  • C#.NET demo code for converting Microsoft Excel to raster images
Functions of Converting Excel to Raster Images in C#
  • Mature Excel rendering control that is completely built in managed Visual C#.NET
  • Able to load Excel (.xlsx) from an existing Excel file or a stream in C#.NET project
  • Easily render Excel to several raster image formats in C#.NET, including GIF, PNG, JPEG, BMP, etc.
  • Allow users to specify resolution of raster image in Excel rendering process through C# programming
  • Offer free C#.NET sample code for rendering Excel document to raster images
  • Still provide online guide for Excel to raster images converting in VB.NET
APIs for Converting Excel to Raster Images in C#
The APIs used for Excel to raster images conversion are provided here. Also, the indispensible DLLs include RasterEdge.Imaging.Basic.dll, RasterEdge.Imaging.Basic.Codec.dll and RasterEdge.Imaging.MSExcel.dll.
// in XLSXDocument
void ConvertToImages(ImageType target, String directory, String fileName);
void ConvertToImages(ImageType targetType, float zoomValue, String directory, String fileName);

// in XLSXPage
void ConvertToImage(ImageType toType,String filePath);
void ConvertToImage(ImageType toType, float zoomValue, String filePath);
Note: Our C#.NET Excel Conversion Control SDK will not directly render Excel document to raster image formats. First of all, Excel document is rendered to our self-defined REImage object/collection (see rendering Excel to get REImage collection in C#). And then, it is converted to other raster images.
Demo Code for Converting Excel to Raster Images in C#
The following C# demo code illustrates how to use our C#.NET Excel Conversion Solution to render Excel document to other raster images (Here, we take PNG as an example). If you want to convert Excel to TIFF image file, please see C# guide: convert Excel to TIFF.
// load an Excel document
XLSXDocument doc = new XLSXDocument (@"c:\sample.xlsx");

// convert all Excel document pages/sheets to PNG files
// page index will automatically append to the file name
doc.ConvertToImages(ImageType.PNG, @"c:\Test\", "sample");

// convert single page to PNG
XLSXPage page = (XLSXPage)doc.GetPage(0);
page.ConvertToImage(ImageType.PNG, @"c:\Test\sample1.png");

// convert to PNG with a zoom in factor of 2f
page.ConvertToImage(ImageType.PNG,2f, @"c:\Test\sample1.png");

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2024 Raster