WrdSaveAs: Open and Save Word Documents

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DescTools.r

Description

Open and save MS-Word documents.

Usage

1
2
WrdOpenFile(fn, wrd = DescToolsOptions("lastWord"))
WrdSaveAs(fn, fileformat = "docx", wrd = DescToolsOptions("lastWord"))

Arguments

fn

filename and -path for the document.

fileformat

file format, one out of "doc", "htm", "pdf".

wrd

the pointer to a word instance. Can be a new one, created by GetNewWrd() or an existing one, created by GetCurrWrd(). Default is the last created pointer stored in DescToolsOptions("lastWord").

Value

nothing returned

Author(s)

Andri Signorell <andri@signorell.net>

See Also

GetNewWrd()

Examples

1
2
3
4
5
6
7
## Not run: 
#   Windows-specific example
wrd <- GetNewWrd()
WrdCaption("A Report")
WrdSaveAs(fn="report", fileformat="htm")

## End(Not run)

DescTools documentation built on June 17, 2021, 5:12 p.m.