Learn R Programming

R2wd (version 1.4)

wdPageSetup: Modify page setup in Word.

Description

Modify page setup in Word.

Usage

wdPageSetup(orientation = "portrait", margins = rep(1, 4), scope = "section", wdapp = .R2wd)

Arguments

orientation
page orientation, either "portrait" or "landscape"
margins
a vector of page margins in inches (a unit variable will be supplied later)
scope
whether the change applies to the entire document ("all") or only to the present section ("section").
wdapp
handle to the Word Application (usually not needed).

Value

    Details

    this invokes the required methods in word to set page orientation and margins

    Examples

    Run this code
    wdGet()
    wdPageSetup(orientation="landscape",margins=c(2,2,2,2),scope="all")

    Run the code above in your browser using DataLab