Re: how can i use clipboard with Jawin?
Alex Chew <[email protected]> Sat, 28 Oct 2006 16:44:03 +0800
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Sean Why I try to use Jawin call vc-clipboard is that I want to paste some HTML string to my PPT slides. PPT COM provides method PastSpecial(), following which I can paste HTML pieces in system clipboard to powerpoint slides. I tried TextTransfer but I failed to set DataType to it. Hence,i got an error, org.jawin.COMException: 80020009: TextRange.PasteSpecial : Invalid request. The specified data type is unavailable. SetClipboardData() in USER32.dll got a parameter DataType with which i can specify while set clipboard content. If right DataType has been set correctly, PasteSpecial() method will work right. Pure java clipboard operation is attractive to me, too. But now I am not sure DataFlavor is the same to DataType in USER32.DLL. I'll try vc clipboard operation through jawin first and then try pure java ones. thanks a lot. alex