XDoc.Converter
Features
Tech Specs
How-to C#
Pricing

C# Document Converter Library
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.


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);


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);