Material Preview

there is any way to save the material preview (that sphere/cone/box etc) to some file?

or render some file with the material applied without closing the current document?