Re: how can i use clipboard with Jawin?
"Mcnamara, Sean D." <[email protected]> Thu, 26 Oct 2006 14:45:06 -0400
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <57F935D6BB6B2543AF5D835DCE7CAF2711B30F@MD61EX100.ad.honeywell-tsi.com> |
If your problem is that you can't get PowerPoint to paste in the data = the way you need, you're mostly out of luck. Jawin is a tool to enable = COM automation; automation implies requesting that another application = does something. The pre-defined PowerPoint API is not at all extensible. =20 Having said that, you can write a native .DLL and load it as a plugin in = PowerPoint to enable additional functionality. You could also embed an = .OCX ActiveX Control in a PowerPoint presentation with additional native = functionality. =20 If you have data on the clipboard (put there either by Java or a native = app) and PowerPoint lacks the method to paste it in the way you want, = you're mostly out of luck (unless you are willing to write and use a = native control as stated above). =20 If, on the other hand, you want to read data into the clipboard from = somewhere inside a Java app, there is a great library for that, but it's = not Jawin. It's built into the Java AWT API. See = http://www.javapractices.com/Topic82.cjp for a tutorial. =20 As I enjoy stating frequently on this list -- if you can't do it using = VBA inside your automated application (in this case PowerPoint), you = certainly can't do it with Jawin. In some cases, even a valid API can't = be marshalled properly by Jawin, so the most you can hope for out of = Jawin is a fairly good subset of existing native or COM APIs. = Unfortunately I am not familiar enough with the PowerPoint API to = suggest another method of using the clipboard. =20 HTH, =20 Sean =20 _____ =20 From: Discussion of Java/Win32/COM integration with Jawin on behalf of = Alex Chew Sent: Thu 10/26/2006 1:40 AM To: [email protected] Subject: [JAWIN] how can i use clipboard with Jawin? I am trying to create PPT with Jawin. It seems there are no other ways but using PasteClipboard for paste a = piece of HTML string to ppt slide. thanks for telling how to complete this. regards alex