Post
by Lubos Vnuk » 11 Jan 2005, 10:29
Posted by: Lubos Vnuk
Hi Michael,
There is also a function bOk = SalEditPasteString ( strString ) that will
give you the text contents of the clipboard. You can check this string to
see if it is what you want. I believe Excel copies a lot of formats into the
clipboard but the text ones (CF_TEXT...) contain the actual value of a cell.
The issue here may be that the value usually ends with CR+LF.
If you want to get to other supported clipboard formats, first you have to
check which those may be e.g. copy a cell in MS Excel, start clipbrd.exe, go
to the View menu and check the list of formats under the last menu
separator. The proper way to enumerate and access those formats would be to
access WinAPI clipboard functions in user32.dll or look for some samples in
Gupta or MS forums.
HTH,
Lubos.