Get a Handle to a Running Word Instance
Look for a running Word instance and return its handle. NULL
is returned if nothing's found.
GetCurrWrd() GetCurrXL()
a handle (pointer) to the running Word, resp. Excel instance.
Closing an instance does not update the value of the pointer. So it may contain an invalid address.
Whether the pointer is still valid can be checked by IsValidHwnd
.
Andri Signorell <andri@signorell.net>
## Not run: # Windows-specific example x <- rnorm(100) wrd <- GetCurrWrd() if(IsValidHwnd(wrd)){ Desc(x, wrd=wrd) } else { print("GetCurrWrd: no running word instance found...") } ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.