Guide for C#
Core Document Formats
Additional Features

C# Word - Rotate Word Page in C#.NET

Rotate & Reorient Word Document Page with Visual C# Code

Visual C#
Home > .NET Imaging SDK > C# > Rotate Word Page
If this is your first time to use our DocImageSDK, we strongly suggest you reading How to Start first!

C#.NET Word Page Rotation Introduction
This Word page rotator control is developed to help C# programmers rotate MS Office Word page (.doc and .docx) with desired angle. This C#.NET Word page rotation control is a standalone and 100% clean .NET solution which not only allows C# developers to rotate Word page to landscape or portrait orientation, but also enables them to rotate a Word page to different directions by 1 degree increments. Remarkably, no other external products, including Microsoft Office Word, are required in the Word page rotation process.
Related .net document control helps: edit pdf text using c#: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET document viewer open source: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS... mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
c# word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
c# tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control mvc excel viewer: ASP.NET Excel Viewer in C# Control (MVC & WebForms): view Office Excel document in web browser.
Written in managed C# code and built in .NET developing platform, this C#.NET Word page rotating control can be used independently in both ASP.NET web and Windows Forms applications.
Now please have a brief look at this article layout of this C#.NET Word page rotating guide page.
  • Detailed guidance on how to install RasterEdge C#.NET Word Doc page rotator library toolkit
  • Display the C#.NET method that this Word page rotation assembly SDK has used
  • How to rotate source Word page with specified angle using sample C# code
  • Word page rotation FAQs for C#.NET class application
Apart from the Word page rotating function, this Word document processor SDK also owns other Word page manipulating functions, such as, how to insert a blank Word page using C#.NET; how to delete a Word page using C#.NET; how to merge Word files using C#.NET and how to split Word document using C#.NET.
C#.NET Word Page Rotation Application
If you are wondering how to start a C#.NET class application for rotating Word page using this .NET Word document rotation control, please read following guidance and you will successfully integrate this mature Word page rotating function into your C#.NET class application.
  1. Make sure you have installed .NET Framework 2.0 or above versions;
  2. Set a C#.NET class application in Visual Studio 2005 or greater versions;
  3. Integrate this .NET Word document rotation library toolkit by adding following dlls to your C#.NET project references;
    • RasterEdge.Imaging.Basic.dll
    • RasterEdge.Imaging.MSWordDocx.dll
    • RasterEdge.Imaging.Processing.dll
  4. Get the evaluation license key by running the application file "RasterEdge.Imaging License Manager.exe";
  5. Copy created text license file to your C#.NET project bin folder where you can find above integrated Word page rotating dlls;
  6. Now you can use following sample C# code to rotate Word page at your desired angle.
C# Method to Rotate Word Document Page
Using this C#.NET Word page rotating method, developers can select one Word page randomly and rotate selected Word page by any defined degrees (from 1 to 360 degrees).
public static int ApplyRotate(REImage img, int deg);
Sample C# Code to Rotate Word Document Page
The C# demo code below can help you rotate a MS Word Doc page and save reoriented Word page to a png image file in .NET class application. The rotating angle is self-defined.
public static string FolderName = "c:/";

private void button1_Click(object sender, EventArgs e)
string fileName = FolderName + "Sample.docx";

REDocument doc = REFile.OpenDocumentFile(fileName, new DOCXDecoder());

BasePage aPage = doc.GetPage(0);

REImage reImage = (REImage)aPage.ToImage();

REFile.SaveImageFile(reImage, "c:/reimage1.png", new PNGEncoder());

REImage reImage1 = REFile.OpenImageFile("c:/reimage1.png");

ImageProcessing.ApplyRotate(reImage1, 100);

REFile.SaveImageFile(reImage1, "c:/rotate.png", new PNGEncoder());
C# Word Document Page Rotation Control FAQs
Q 1: I want to rotate all MS Word document pages by 90 degrees in real time by C# programming code. Can this C#.NET Word page rotator control support batch Word page rotation?
A 1: Sorry, the API that this C#.NET Word page rotator control add-on has offered only allows developers to rotate one Word page at a time. But the next version of Word page rotation control SDK will integrate the batch Word page rotating function.

Q 2: I want to integrate a C#.NET Word page rotator add-on into my ASP.NET web viewer application which can help me rotate Word page by 90 degree increments. Can this C#.NET Word page rotating control SDK meet my request?
A 2: Yes, RasterEdge C#.NET Word page rotation control can be easily integrated into ASP.NET web viewer for Word page rotation by 90 degrees, 180 degrees and 270 degrees.

Recommend this to Google+ is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster