Novacode DocX Different page orientations within the same document
Using the following code, I'm trying to create a document in which pages 2 and 3 are landscape while the others are portrait. All should be 8.5" x 11". using (System.IO.MemoryStream ms = new System.IO.MemoryStream()) { using (DocX document = DocX.Create(ms)) { document.PageLayout.Orientation = Novacode.Orientation.Portrait; document.PageWidth = 816F; document.PageHeight = 1056F; document.MarginTop = 50F; document.MarginRight = 50F; document.MarginBottom = 75F; document.MarginLeft = 50F; document.AddHeaders(); document.AddFooters(); document.DifferentFirstPage = true; document