OfficeIMO

API Reference

Class

OrientationOfPage

Namespace OfficeIMO.Word

Contains methods to change print orientation for existing documents.

Inheritance

  • Object
  • OrientationOfPage

Methods

SetPrintOrientation(System.String fileName, DocumentFormat.OpenXml.Wordprocessing.PageOrientationValues newOrientation) #

Changes the print orientation of an existing Word document.

Parameters

fileName System.String required
Path to the document.
newOrientation DocumentFormat.OpenXml.Wordprocessing.PageOrientationValues required
Desired page orientation.