Copy to Clipboard

My program generates a text (picture) and I want to copy it to the clipboard so that the user can paste it into word or excel.

Waht command should I use

I do not want to copy into file.

Is ther a difference between text and picture