How to C#: Tiff
Using Tiff SDK for C#.NET
Convert Word, Excel, PowerPoint to Tiff
Convert Word, Excel, PowerPoint to Tiff
  |  
Home ›› XDoc.Tiff ›› C# Tiff: MS Office to Tiff

C# TIFF - Conversion from Word, Excel, PPT to TIFF


Learn How to Change MS Word, Excel, and PowerPoint to TIFF Image File in C#




Overview for MS Office to TIFF Conversion



In order to convert Microsoft Word, Excel, and PowerPoint to Tiff image file Visual C#.NET project, you need to use our XDoc.Tiff for .NET SDK. It is quiet easy to integrate this SDK into your C# program, by simply adding project references.


Related .net document control helps:
asp.net sharepoint pdf editor using c#: ASP.NET SharePoint PDF Editor Control: view, edit, annotate, redact PDF document in SharePoint sites
c# asp.net image viewer: ASP.NET Image Document Viewer Control: view, annotate, redact, convert image files in html web browser
c# asp.net text document viewer: C# HTML5 Viewer: Load, View, Convert, Annotate and Edit OpenOffice, CSV and Text file
c# asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: view, annotate, redact Adobe PDF files online in ASP.NET
asp.net edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net dotnetnuke pdf editor using c#: ASP.NET DNN PDF Editor Control: view, edit PDF files in Dotnetnuke application


This page includes three pieces of C# programming demos, please directly use them in your project for fast file conversion.


C# programming demo: conversion from Word to Tiff


C# programming demo: conversion from Excel to Tiff


C# programming demo: conversion from PowerPoint to Tiff




C# Project: Import TIFF dlls to test Project/Solution



In order to run the following conversion code, please do as follows:


Add references;


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.XDoc.Processing.dll


  RasterEdge.Imaging.Raster.dll


  RasterEdge.Imaging.Raster.Core.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:


If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.


If using x86, the platform target should be x86.




C# Demo for Converting Word to TIFF



Add references (Extra);

  RasterEdge.XDoc.Word.dll


Use corresponding namespaces (Extra);


  using RasterEdge.Imaging.Word;


This demo shows how to load a sample Word (.docx) document and convert it to Tiff image file




// Load your Word (.docx) document.
DOCXDocument doc = new DOCXDocument(@"demo.docx");
if (null == doc)
        throw new Exception("Fail to load Word Document");

// Convert Word to Tiff.
doc.ConvertToDocument(DocumentType.TIFF, @"output.tif");





C# Demo for Converting Excel to TIFF



Add references (Extra);

  RasterEdge.XDoc.Excel.dll


Use corresponding namespaces (Extra);


  using RasterEdge.Imaging.Excel;


Now, you may load an Excel (.xlsx) file and convert it to Tiff image in your C# project.




// Load your Excel (.xlsx) document.
XLSXDocument doc = new XLSXDocument(@"demo.xlsx");
if (null == doc)
        throw new Exception("Fail to load Excel Document");

// Convert Excel to Tiff.
doc.ConvertToDocument(DocumentType.TIFF, @"output.tif");





C# Demo for Converting PowerPoint to TIFF



Add references (Extra);

  RasterEdge.XDoc.PowerPoint.dll


Use corresponding namespaces (Extra);


  using RasterEdge.Imaging.PowerPoint;


This demo code is for rendering and changing PowerPoint (.pptx) document to Tiff image.




// Load your PPT (.pptx) document.
PPTXDocument doc = new PPTXDocument(@"demo.pptx");
if (null == doc)
        throw new Exception("Fail to load PowerPoint Document");

// Convert PPT to Tiff.
doc.ConvertToDocument(DocumentType.TIFF, @"output.tif");