

Then in the Page Setup group, click on the Orientation button. If page is in draft status, publish it if (modInfo.Status = SPModerationStatusType. Answer: Select the Page Layout tab in the toolbar at the top of the screen. If (modInfo.Status = SPModerationStatusType.Pending) If page is in "pending" status, approve it Skip these steps if the parent list doesn't support moderation if () PageFile.CheckIn(comment, SPCheckinType.MajorCheckIn) If (pageFile.Level = SPFileLevel.Checkout) If you’re using Word 2007, click the round button at top left, choose Word Options at the very bottom of the dialogue box, then as above Display and untick Show document tooptips on hover. / /// Approves changes to a publishing page /// /// PublishingPage with changes to be published /// Comment associated with the change public void ApprovePublishingPage(PublishingPage page, string comment) Training: In Word for the web, change your document layout including marings, page orientation, and line spacing. If you’re in Word 2010 or 2013, go to File Options Display and untick Show document tooltips on hover. Publish the page // This handles the page checkin and publishing the draftĪpprovePublishingPage(page, "Modified page layout") Throw an exception if the page is checked out string pageCheckedOut = string.Format( "Page ", page.Url, ) Is the page checked out? if ( != null) Change Page Orientation: Click the Orientation button in the Page Setup. Check out the list item as needed bool forceCheckout = Click Margins in the Page Setup Group, select a setting. PublishingPageCollection pages = pubWeb.GetPublishingPages() PageLayoutCollection siteLayouts = pubSite.GetPageLayouts( false) Click Menus tab Click File menu Choose Page Setup in the drop down menu Click Page Layout tab Move to Page Setup group The Page Setup window pops up All. Get page layout from the page layouts collection PublishingSite pubSite = new PublishingSite(web.Site)

PublishingWeb pubWeb = PublishingWeb.GetPublishingWeb(web) Get a reference to the publishing web and publishing site

Throw new ApplicationException( "Web does not have publishing enabled") Check to ensure the web has publishing turned on if (!PublishingWeb.IsPublishingWeb(web)) Thought I’d blog it this time, to make it easier on myself next time around. Every time I need to do it, I have to dig up some old code. Set the Page Orientation and Size : Page Style Formatting Microsoft Office Word 2007 Tutorial Click the Page Layout tab.
How to change page layout in word 2007 how to#
The hardest part about this (by far) is figuring out how to publish the page after you’ve made your changes.
