title: How to Change Orientation of Single Paragraph or Page using Open XML and C#?
body: <p>I am generating a word document using C# and Open XML SDK. I want to change the orientation of some paragraphs and their containing pages to landscape while keeping the other ones in portrait orientation.
  <br>I tried some solutions, but they didn't achieve what I am looking for and instead the orientation of all the pages have been changed to landscape except the first one. These solutions include:
  <br>- Adding SectionProperties to the paragraph that I want to change
     its orientation to landscape:</p>
  
  <pre><code>WordprocessingDocument WordDocument = WordprocessingDocument.Open(ReportFile, true)
  Paragraph paragraph =  new Paragraph(new ParagraphProperties(
                 new SectionProperties( new PageSize() 
                 { Width = (UInt32Value)15840U, Height = (UInt32Value)12240U, Orient = PageOrientationValues.Landscape })));
  WordDocument.MainDocumentPart.Document.Body.Append(paragraph);
  </code></pre>
  
  <p><br>- Adding a new Body to the main document and appending the paragraph to it:</p>
  
  <pre><code>WordprocessingDocument WordDocument = WordprocessingDocument.Open(ReportFile, true)    
  Body body = new Body();          
  Paragraph paragraph =  new Paragraph(new ParagraphProperties(
                 new SectionProperties( new PageSize() 
                 { Width = (UInt32Value)15840U, Height = (UInt32Value)12240U, Orient = PageOrientationValues.Landscape })));
  body.Append(paragraph);
  WordDocument.MainDocumentPart.Document.Append(body);
  </code></pre>
  
  <p><br>- Adding a new Body to the main document and appending SectionProprties to it directly:</p>
  
  <pre><code>WordprocessingDocument WordDocument = WordprocessingDocument.Open(ReportFile, true)  
  Body body = new Body();
  Paragraph paragraph = new Paragraph();
  SectionProperties sectionProp = new SectionProperties(new PageSize() { Width = (UInt32Value)15840U, Height = (UInt32Value)12240U, Orient = PageOrientationValues.Landscape });
  body.Append(paragraph);
  body.Append(sectionProp);
  WordDocument.MainDocumentPart.Document.Append(body);
  </code></pre>
  
  <p>So, is there a way for changing the orientation of a single paragraph/page?</p>