Writing to clipboard ...

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Writing to clipboard ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Silver Springs ... >> Thu, 3 Jun 1999 22:05:39 GMT

Hi
I want to put text from JADE into the body of a Word document and all my research seem to point to the fact that it is a "major interface" and therefore mega-expensive.

For my requirement a cheap solution would be to write out the text I want to the Windows clipboard, launch Word and the document and then allow the user to press Ctrl-V for the usual "insert from the clipboard" and then they could format it as required.

So, my question is how do you programmatically write out text from a specific JADE object into the clipboard as there ain't much in the on-line Help about writing to it ?

Thanxxx in anticipation .....

SilverSprings ............................... silversprings@easyliving.com

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Writing to clipboard ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Geoff Davies >> Thu, 3 Jun 1999 23:36:14 GMT

On the JADE web site there is a FAQ
" How do I use the Windows clipboard from within JADE?"

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Writing to clipboard ...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:15 pm

by Craig Shearer >> Fri, 4 Jun 1999 1:51:45 GMT

I wouldn't have thought it was "mega-expensive" Mr Silver, but it would require writing an OCX and knowing about OLE automation. In my opinion, it's worth the trouble just to learn all the ins and outs of OLE automation.

As for putting stuff on the clipboard, yep, as Geoff Davies mentioned, there's an FAQ on the JADE website. If you're interested, I've also done some work where I can place a picture on the clipboard too... which can be very useful. Give me a yell if you'd like more info.

Craig.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: Bing [Bot] and 8 guests