C#: Online Guide
How To: Word SDK
Thumbnail Create
  |  
Home ›› XDoc.Word ›› C# Word: Thumbnail Create

How to C#: Generate Thumbnail for Word


Support Thumbnail Generation with Various Options for Quick Word Navigation




Overview



You can navigate through Word document in your C#.NET application via thumbnail. And generating thumbnail for Word document is an easy work. Please see C# programming example as below.


Related .net document control helps:
c# asp.net sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
view file asp.net: View multiple document formats in ASP.NET, MVC, Ajax, Azure using C# control
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 mvc pdf editor using c#: ASP.NET MVC PDF Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
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 dicom document viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects



How to Create Thumbnail for Word in C#



Add necessary references to your C#.NET project:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;


This is a simple C# example for Word thumbnail creation. As you see, you are allowed to define and control the size of thumbnail.




DOCXDocument pdf = new DOCXDocument(@"C:\1.docx");
BasePage page = pdf.GetPage(0);
Size size = new Size(200, 200);
Bitmap bmp = page.ConvertToImage(size);