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 powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net pdf page: ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf editor: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents


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