Method SetPaper
SetPaper(PaperSize, PageOrientation)
Sets the page size and orientation as Word's Size and Orientation galleries do: landscape lays the paper
on its side (width and height swapped) and writes w:orient="landscape".
public void SetPaper(PaperSize paper, PageOrientation orientation)
Parameters
paperPaperSizeThe paper.
orientationPageOrientationThe orientation.
Exceptions
- ArgumentNullException
paperis null.