Format Cells Of a Word Table
Format cells of a Word table.
WrdFormatCells(wtab, rstart, rend, col = NULL, bg = NULL, font = NULL, border = NULL, align = NULL)
wtab |
a handle to the word table as returned i.g. by |
rstart |
the left/upper cell of the cell range |
rend |
the right/lower cell of the cell range |
col |
the foreground colour |
bg |
the background colour |
font |
the font to be used to the output. This should be defined as a list containing fontname, fontsize, bold and italic flags: |
border |
the border of the cell range, defined as a list containing arguments for
border, linestyle, linewidth and color. |
align |
a character out of |
Cell range selecting might be complicated. This function makes it easy.
a handle to the range.
Andri Signorell <andri@signorell.net>
## Not run: # Windows-specific example m <- matrix(rnorm(12)*100, nrow=4, dimnames=list(LETTERS[1:4], c("Variable","Value","Remark"))) wrd <- GetNewWrd() wt <- ToWrd(m) WrdFormatCells(wt, rstart=c(3,1), rend=c(4,3), bg=wdConst$wdColorGold, font=list(name="Arial Narrow", bold=TRUE), align="c", border=list(color=wdConst$wdColorTeal, linewidth=wdConst$wdLineWidth300pt)) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.