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.



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