Skip to content
Prev 4032 / 398513 Next

copying to the clipboard from the command line in Windows (was [R] Graphics ?)

On Fri, 10 Dec 1999, Yves Gauvreau wrote:

            
The answer is in the file gnuwin32/devga.c. Just see what the menu actually
calls. For a bitmap, you need to write some compiled code that calls
copytoclipboard. (Or use savePlot to write a bmp file, in rw0900 and
later.)

For a metafile, I believe you can use savePlot with file name "": you can
certainly use this to write to a file and then read it into your VB
application.

However, why not plot directly to a metafile or bmp file and then display
that?  That avoids writing graphics on a screen somewhere that you don't
want displayed.

If you are doing this sort of thing you really need to keep fully
up-to-date with R versions. Thomas Baier's DCOM server (it is not a version
of R) has been updated, and you will need R 0.90.1 (due next week) to
run with version 0.91 of his server.  Or compile up R-release now.

A more informative subject line would be helpful.