C# TIFF Image Library
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.
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:
C# Demo for Converting Word to TIFF
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
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
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");
|