How to C#: Converter
Use Convert SDK for C#
Microsoft Excel to Tiff
Microsoft Excel to Tiff
  |  
Home ›› XDoc.Converter ›› C# Converter: Excel to Tiff

C# Tiff Convert: How to Convert MS Excel to Tiff in C# Application


Illustrate How to Achieve Excel to Tiff Conversion in Visual Studio C#.NET Project






RasterEdge XDoc.Converter for .NET is a professional file conversion tool for Microsoft Office Excel and Tiff image file. It supports fast and accurate Excel to Tiff conversion in C# with customizable settings. For example, C# users are allowed to set its conversion mode, single sheet conversion or whole document conversion. Moreover, Tiff image resolution should be set during the conversion process.




C# DLLs for Excel Conversion to TIFF


Add necessary references to your C# project:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.JBIG2.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Converter.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.AdvancedCleanup.Core.dll


  RasterEdge.XImage.OCR.dll


  RasterEdge.XImage.OCR.Tesseract.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use the namespaces


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Converter;




Example for Converting Excel to Tiff in C#



This part gives you an example of how to use C# programming code to achieve high quality Excel to Tiff conversion.

The following demo code will create an output .tif file with default resolution(96) and default compression(JPEG).




// Define input and output files path.
String inputFilePath = @"C:\input.xlsx";
String outputFilePath = @"C:\output.tif";

// Convert Excel to Tiff.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_TIFF);





C# Sample: Converting Excel File to Tiff Image with Settings(Compression and Resolution)



You may directly copy and paste this Excel to Tiff conversion demo to your C# .NET program.

The following demo code will create an output .tif file with resolution(300) and compression(Group3Fax).




//Define the document save setting options
DocumentSaveOption option = new DocumentSaveOption(FileType.DOC_TIFF);

//set the output tiff file compression
option.CompressionMode = ImageCompress.Group3Fax;

//set the output tiff file resolution
option.Resolution = 300;
DocumentConverter.ToDocument(@"C:\input.xlsx", @"C:\output.tif", option);