"Bob" <b...@nospam.com> wrote in message news:40dcd589$1@forums-2-dub...
You are still vague -- what kind of control are you trying to paste
into? What are you trying to do with the pasted image? Just display it?
Save it to a database? etc...
--
Roy
"Bob" <b...@nospam.com> wrote in message news:40dcd589$1@forums-2-dub...
I could care less what control I use, just as long as the end user can see
the image. Over the weekend, I wrote a DLL that can save the clipboard to
disk then I can use SetPicture to read in the image to PowerBuilder. Then I
can write dynamic SQL to insert the blob into the database. The DLL
supports writing the file as a bitmap and jpeg.
I would have liked to use native PowerBuilder to paste directly into any of
it's image controls.
I am just suprised that Team Sybase never cut and pasted before.
"Roy Kiesler [TeamSybase]" <roy.k...@teamsybase.com> wrote in message
news:40df36ad$2@forums-1-dub...
"bede" <bede...@m.sofico.be> wrote in message news:40dfef54@forums-2-dub...
I'm glad to see that you were resourceful enough to solve this -- it
would be great if you could share your code on CodeXchange so others can
benefit from it as well.
--
Roy
"Bob" <b...@nospam.com> wrote in message news:40e09eb0$1@forums-1-dub...
>I could care less what control I use, just as long as the end user can see
>the image.
Only the native picture control supports the direct insertion of an
image from memory, using the SetPicture option. For just about any
other controls, including the DataWindow, you would need to save the
data out into a temporary file first, and then load the file.
>I am just suprised that Team Sybase never cut and pasted before.
Perhaps you have TeamSybase and/or the newsgroups confused with
official Sybase tech support. TeamSybase are volunteers that have
agreed to spend a certain amount of time in the forums trying to
answer people's question. There's no guarantee from Sybase concerning
the newsgroup or from TeamSybase that every question will be answered.
If you need that kind of support, I'd suggest obtaining a support
agreement from Sybase.
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com
Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups
Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com
Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org
---------------------------------------------------------------------
DISCLAIMER:
This newsgroup message is only intended for the recipient. Given that it
is a posting to a public newsgroup, that means if you can read this
message then you are the recipient. This message may contain information
that is confidential and protected from disclosure. And then again,
it may not.
Given that TeamSybase members are not employees of Sybase, the contents
of this message do not necessarily represent the views or policies of
Sybase. Given that TeamSybase is a diverse group of users of Sybase
products, the contents of this message do not necessarily represent the
views of a significant number of the members of TeamSybase. Given that the
author has mutliple personalities and hears voices in his head, the contents
of this message do not necessarily represent his own views.
I already knew that. I wanted direct Paste from clipboard.
>
> >I am just suprised that Team Sybase never cut and pasted before.
>
> Perhaps you have TeamSybase and/or the newsgroups confused with
> official Sybase tech support. TeamSybase are volunteers that have
> agreed to spend a certain amount of time in the forums trying to
> answer people's question. There's no guarantee from Sybase concerning
> the newsgroup or from TeamSybase that every question will be answered.
> If you need that kind of support, I'd suggest obtaining a support
> agreement from Sybase.
>
I am not cunfused. I was being a smart ass.
[snip]
I can do it in one step. I pass the directory/filename on disk where to put
picture to the DLL and load it in PowerScript then delete it. End user has
no idea I saved the image to disk.
I don't want to use an RTE control. I want to use a picture control.
pbm_thisusuallydoesnothelp:-))
Philip Salgannik
"Bob" <b...@nospam.com> wrote in message news:40e203d0@forums-1-dub...
"Philip Salgannik" <philema...@comcast.net> wrote in message
news:40e24190@forums-2-dub...
> Well, keep on not wanting...
>
>
> pbm_thisusuallydoesnothelp:-))
> Philip Salgannik
>
[snip]
> I will upload the DLL and sample PowerBuilder script this weekend to Code
> Exchange. Can any post to this server?
>
>
Yes
--
Roy
Here is an example program. I am still finishing the JPEG support.
"Bob" <b...@nospam.com> wrote in message news:40dcd589$1@forums-2-dub...
ftp://ftp.pbsoftware.com/pbs/PBImagePaste.zip
"Bob Piskac" <b...@pbsoftware.com> wrote in message
news:40ea802a@forums-1-dub...