rtfStartSection

DESCRIPTION:

Starts a section for a new format, e.g. changing from portrait to landscape or vice-versa.

USAGE:

rtfStartSection(rtfFile, pageheight=11, pagewidth=8.5,
      top.marg=1, bottom.marg=1, right.marg=1.25, left.marg=1.25, 
      header=numeric(), footer=numeric(),
      writeText=T, bLandscape=F, bFirstInFile=F, protectDocument=F)

ARGUMENTS:

rtfFile
file to write to
pageheight
page height in inches (default=11)
pagewidth
page width in inches (default=8.5)
top.marg
top margin in inches (default=1)
bottom.marg
bottom margin in inches (default=1)
right.marg
right margin in inches (default=1.25)
left.marg
left margin in inches (default=1.25)
header
header margin in inches, default is no margin left for header (default=numeric())
footer
footer margin in inches, default is no margin left for footer (default=numeric())
writeText
T/F determining whether page break should be written to the given file or not; or if the tag string should just be returned.
bLandscape
T/F value that determines whether the file will be landscape or portrait oriented. If bLandscape=T, pageheight and pagewidth are switched and vert.marg and side.marg are switched (default=F).
bFirstInFile
Logical value that determines if first section in file. The first section does not need to be marked as a section. (default=F).
protectDocument
Logical value that determines if the document should be protected from edits. The default is F which does not protect the document.

DETAILS:

This function writes out a section break with the new formatting. This functtion can be used to change from portrait to landscape formatting.

AUTHOR(S):

TIBCO Software Inc.

EXAMPLES:

## change to landscape
outString <- rtfStartSection("myfile.rtf", pageheight=8.5, pagewidth=11,
      top.marg=1.25, bottom.marg=1, right.marg=1, left.marg=1, 
      header=numeric(), footer=numeric(),
      writeText=T, bLandscape=T, bFirstInFile=F, protectDocument=F)