Page Orientation

2 posts, 0 answers
  1. Richard
    Richard avatar
    19 posts
    Member since:
    Sep 2011

    Posted 13 Oct 2015 Link to this post

    So I'm following the sample on this page:

    I've been able to create my document object, editor object and added lines, etc. to the file and it produces a docx without issue.  What I'm trying to figure out is how to set the pageorientation to landscape.  I've been looking and haven't found any way to accomplish this.  I saw a sections pageorientation in the docs but I don't see how to access it.




  2. Tanya
    Tanya avatar
    583 posts

    Posted 14 Oct 2015 Link to this post

    Hi Richard,

    The PageOrientation property of the Section class  is used to determine the actual size of the paper to use on the printer and doesn't reflect the visualization of the document. If your requirement is to visualize the document in Landscape mode, you could use the Rotate() method of the section as described in our documentation on the matter.

    Hope this helps.
Back to Top