473,839 Members | 1,328 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to get the contnet of clipboard

ad
Hi,
How can we get the content of clipboard with program?


Nov 23 '05
16 1941
re:
Hmm, maybe i was to harsh.
Nah, you weren't "harsh". You were mistaken.
I know it's hard to accept that sometimes.

re: It must be seen as local stuff.
That task is not simply "local stuff". There's a server involved.

Passing the contents of a client's clipboard to an IIS server
running ASP.NET is not a trivial undertaking. Not in the least.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl... Hmm, maybe i was to harsh.
But you get the idea.
It must be seen as local stuff.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl...
I would have liked to see sample code for doing that,
in ASP.NET, if it's that easy.

Maybe you didn't take into account that the clipboard class
is in the System.Windows. Forms namespace ( which, as
Craig told you, cannot be accessed by ASP.NET server-side ) ?

Even if it were to be accessed, it would be the *server's* clipboard
that's accessed, if this thing is running server-side, wouldn't it ?

So, that leaves, as the only alternative, to write a client-side program
which captures client data, in sync with the current ASP.NET context,
have the user install it and run it so that the correct data is captured client-side,
and figure out a way to insert the clipboard's contents to the server, in context
with the current request.

That last part doesn't seem too complicated, although it's certainly not "easy".

The first part certainly is complicated, and that's why I wondered why you
described the procedure as "once obtained it is easy to transmit to the server".

That "once obtained" is what you overlooked.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net...
I did see this work on a live website, not mine.
It did work.
It was there to proof that the CB could be read.

"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:ug******** ******@TK2MSFTN GP12.phx.gbl...
re:
> MSIE supports obtaining the user's clipboard.
> Once obtained it is easy to transmit to the server.

Please post sample code.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net...
> MSIE supports obtaining the user's clipboard.
> Once obtained it is easy to transmit to the server.
>
>
> "Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht
> news:uH******** ******@TK2MSFTN GP15.phx.gbl...
>> ad wrote:
>>> Hi,
>>> How can we get the content of clipboard with program?
>>
>> client-side (on the user's PC): you can't. you don't have access to it...
>> server-side:
>> http://msdn.microsoft.com/library/de...classtopic.asp
>>
>> --
>> craig
>> Microsoft MVP - ASP/ASP.NET



Nov 23 '05 #11
We must see it differently then.
A js function can be called to obtain the CB, this could be onload.
If you have the CB text you can invoke a post to the server.

What 's not trivial?
Unless you expect to read other CB formats like EMF or so?
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
re:
Hmm, maybe i was to harsh.


Nah, you weren't "harsh". You were mistaken.
I know it's hard to accept that sometimes.

re:
It must be seen as local stuff.


That task is not simply "local stuff". There's a server involved.

Passing the contents of a client's clipboard to an IIS server
running ASP.NET is not a trivial undertaking. Not in the least.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
Hmm, maybe i was to harsh.
But you get the idea.
It must be seen as local stuff.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl...
I would have liked to see sample code for doing that,
in ASP.NET, if it's that easy.

Maybe you didn't take into account that the clipboard class
is in the System.Windows. Forms namespace ( which, as
Craig told you, cannot be accessed by ASP.NET server-side ) ?

Even if it were to be accessed, it would be the *server's* clipboard
that's accessed, if this thing is running server-side, wouldn't it ?

So, that leaves, as the only alternative, to write a client-side program
which captures client data, in sync with the current ASP.NET context,
have the user install it and run it so that the correct data is captured
client-side,
and figure out a way to insert the clipboard's contents to the server,
in context
with the current request.

That last part doesn't seem too complicated, although it's certainly not
"easy".

The first part certainly is complicated, and that's why I wondered why
you
described the procedure as "once obtained it is easy to transmit to the
server".

That "once obtained" is what you overlooked.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net...
I did see this work on a live website, not mine.
It did work.
It was there to proof that the CB could be read.

"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:ug******** ******@TK2MSFTN GP12.phx.gbl...
> re:
>> MSIE supports obtaining the user's clipboard.
>> Once obtained it is easy to transmit to the server.
>
> Please post sample code.
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> =============== =============== ========
> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
> news:dm******** **@azure.qinip. net...
>> MSIE supports obtaining the user's clipboard.
>> Once obtained it is easy to transmit to the server.
>>
>>
>> "Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in
>> bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl...
>>> ad wrote:
>>>> Hi,
>>>> How can we get the content of clipboard with program?
>>>
>>> client-side (on the user's PC): you can't. you don't have access to
>>> it... server-side:
>>> http://msdn.microsoft.com/library/de...classtopic.asp
>>>
>>> --
>>> craig
>>> Microsoft MVP - ASP/ASP.NET



Nov 23 '05 #12
And if I have an image in the clipboard ?

Anyway, having your clipboard read by a web page is a security risk.

To make sure your clipboard is not exposed :

1. In Internet Explorer, go to Tools -> Internet Options -> Security
2. Click on Custom Level
3. In the security settings, click to Disable the “Allow Paste Operations via Script.”

That will keep your clipboard text contents private,
and will prevent you from doing what you are proposing to do.

Simply turning off Javascript
( which more and more people are doing these days )
will prevent the reading of text from a client's clipboard, too.

IOW, client behavior is easily derailed, so it's not a general solution.
That lands us right back into the server scenario again, where it simply can't be done.

The idea is not only whether a programming sequence is feasible,
but also whether it's practical, reliable and secure.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
We must see it differently then.
A js function can be called to obtain the CB, this could be onload.
If you have the CB text you can invoke a post to the server.

What 's not trivial?
Unless you expect to read other CB formats like EMF or so?
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
re:
Hmm, maybe i was to harsh.


Nah, you weren't "harsh". You were mistaken.
I know it's hard to accept that sometimes.

re:
It must be seen as local stuff.


That task is not simply "local stuff". There's a server involved.

Passing the contents of a client's clipboard to an IIS server
running ASP.NET is not a trivial undertaking. Not in the least.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
Hmm, maybe i was to harsh.
But you get the idea.
It must be seen as local stuff.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl...
I would have liked to see sample code for doing that,
in ASP.NET, if it's that easy.

Maybe you didn't take into account that the clipboard class
is in the System.Windows. Forms namespace ( which, as
Craig told you, cannot be accessed by ASP.NET server-side ) ?

Even if it were to be accessed, it would be the *server's* clipboard
that's accessed, if this thing is running server-side, wouldn't it ?

So, that leaves, as the only alternative, to write a client-side program
which captures client data, in sync with the current ASP.NET context,
have the user install it and run it so that the correct data is captured client-side,
and figure out a way to insert the clipboard's contents to the server, in context
with the current request.

That last part doesn't seem too complicated, although it's certainly not "easy".

The first part certainly is complicated, and that's why I wondered why you
described the procedure as "once obtained it is easy to transmit to the server".

That "once obtained" is what you overlooked.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
news:dm******** **@azure.qinip. net...
>I did see this work on a live website, not mine.
> It did work.
> It was there to proof that the CB could be read.

> "Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
> news:ug******** ******@TK2MSFTN GP12.phx.gbl...
>> re:
>>> MSIE supports obtaining the user's clipboard.
>>> Once obtained it is easy to transmit to the server.
>>
>> Please post sample code.
>>
>> Juan T. Llibre, ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> ASPNETFAQ.COM : http://www.aspnetfaq.com/
>> Foros de ASP.NET en Español : http://asp.net.do/foros/
>> =============== =============== ========
>> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
>> news:dm******** **@azure.qinip. net...
>>> MSIE supports obtaining the user's clipboard.
>>> Once obtained it is easy to transmit to the server.
>>>
>>>
>>> "Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht
>>> news:uH******** ******@TK2MSFTN GP15.phx.gbl...
>>>> ad wrote:
>>>>> Hi,
>>>>> How can we get the content of clipboard with program?
>>>>
>>>> client-side (on the user's PC): you can't. you don't have access to it...
>>>> server-side:
>>>> http://msdn.microsoft.com/library/de...classtopic.asp
>>>>
>>>> --
>>>> craig
>>>> Microsoft MVP - ASP/ASP.NET



Nov 23 '05 #13
>Simply turning off Javascript
Eeek!
I wonder how ASP.NET reacts :)
+ a lot of my code is in javascript
I consider that a minimal requirement.

"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
And if I have an image in the clipboard ?

Anyway, having your clipboard read by a web page is a security risk.

To make sure your clipboard is not exposed :

1. In Internet Explorer, go to Tools -> Internet Options -> Security
2. Click on Custom Level
3. In the security settings, click to Disable the “Allow Paste Operations
via Script.”

That will keep your clipboard text contents private,
and will prevent you from doing what you are proposing to do.

Simply turning off Javascript
( which more and more people are doing these days )
will prevent the reading of text from a client's clipboard, too.

IOW, client behavior is easily derailed, so it's not a general solution.
That lands us right back into the server scenario again, where it simply
can't be done.

The idea is not only whether a programming sequence is feasible,
but also whether it's practical, reliable and secure.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
We must see it differently then.
A js function can be called to obtain the CB, this could be onload.
If you have the CB text you can invoke a post to the server.

What 's not trivial?
Unless you expect to read other CB formats like EMF or so?


"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
re:
Hmm, maybe i was to harsh.

Nah, you weren't "harsh". You were mistaken.
I know it's hard to accept that sometimes.

re:
It must be seen as local stuff.

That task is not simply "local stuff". There's a server involved.

Passing the contents of a client's clipboard to an IIS server
running ASP.NET is not a trivial undertaking. Not in the least.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
Hmm, maybe i was to harsh.
But you get the idea.
It must be seen as local stuff.
"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:uc******** *****@TK2MSFTNG P15.phx.gbl...
>I would have liked to see sample code for doing that,
> in ASP.NET, if it's that easy.
>
> Maybe you didn't take into account that the clipboard class
> is in the System.Windows. Forms namespace ( which, as
> Craig told you, cannot be accessed by ASP.NET server-side ) ?
>
> Even if it were to be accessed, it would be the *server's* clipboard
> that's accessed, if this thing is running server-side, wouldn't it ?
>
> So, that leaves, as the only alternative, to write a client-side
> program
> which captures client data, in sync with the current ASP.NET context,
> have the user install it and run it so that the correct data is
> captured client-side,
> and figure out a way to insert the clipboard's contents to the server,
> in context
> with the current request.
>
> That last part doesn't seem too complicated, although it's certainly
> not "easy".
>
> The first part certainly is complicated, and that's why I wondered why
> you
> described the procedure as "once obtained it is easy to transmit to
> the server".
>
> That "once obtained" is what you overlooked.
>
>
>
> Juan T. Llibre, ASP.NET MVP
> ASP.NET FAQ : http://asp.net.do/faq/
> ASPNETFAQ.COM : http://www.aspnetfaq.com/
> Foros de ASP.NET en Español : http://asp.net.do/foros/
> =============== =============== ========
> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
> news:dm******** **@azure.qinip. net...
>>I did see this work on a live website, not mine.
>> It did work.
>> It was there to proof that the CB could be read.
>
>> "Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
>> news:ug******** ******@TK2MSFTN GP12.phx.gbl...
>>> re:
>>>> MSIE supports obtaining the user's clipboard.
>>>> Once obtained it is easy to transmit to the server.
>>>
>>> Please post sample code.
>>>
>>> Juan T. Llibre, ASP.NET MVP
>>> ASP.NET FAQ : http://asp.net.do/faq/
>>> ASPNETFAQ.COM : http://www.aspnetfaq.com/
>>> Foros de ASP.NET en Español : http://asp.net.do/foros/
>>> =============== =============== ========
>>> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
>>> news:dm******** **@azure.qinip. net...
>>>> MSIE supports obtaining the user's clipboard.
>>>> Once obtained it is easy to transmit to the server.
>>>>
>>>>
>>>> "Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in
>>>> bericht news:uH******** ******@TK2MSFTN GP15.phx.gbl...
>>>>> ad wrote:
>>>>>> Hi,
>>>>>> How can we get the content of clipboard with program?
>>>>>
>>>>> client-side (on the user's PC): you can't. you don't have access
>>>>> to it... server-side:
>>>>> http://msdn.microsoft.com/library/de...classtopic.asp
>>>>>
>>>>> --
>>>>> craig
>>>>> Microsoft MVP - ASP/ASP.NET
>
>



Nov 23 '05 #14
re:
Eeek!
heh, heh...

Good reaction ... ;-)

re: I wonder how ASP.NET reacts :)
+ a lot of my code is in javascript
I consider that a minimal requirement.


No web server, no matter the technology used,
can function as efficiently without client-side Javascript as with it.

Some things work fine without JS, like server-side form validation.
Other fail miserably.

Worse, not even detecting browsers can tell you if JS has been disabled,
or even if paste operations via script have been disabled, which many
companies do disable as part of their security policy.

The only way is to test for JS involves using JS. What a catch-22!

If you pass a variable and the variable is there, JS is running.
If it's not there, it's not.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
Simply turning off Javascript

Eeek!
I wonder how ASP.NET reacts :)
+ a lot of my code is in javascript
I consider that a minimal requirement.

"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
And if I have an image in the clipboard ?

Anyway, having your clipboard read by a web page is a security risk.

To make sure your clipboard is not exposed :

1. In Internet Explorer, go to Tools -> Internet Options -> Security
2. Click on Custom Level
3. In the security settings, click to Disable the “Allow Paste Operations via Script.”

That will keep your clipboard text contents private,
and will prevent you from doing what you are proposing to do.

Simply turning off Javascript
( which more and more people are doing these days )
will prevent the reading of text from a client's clipboard, too.

IOW, client behavior is easily derailed, so it's not a general solution.
That lands us right back into the server scenario again, where it simply can't be done.

The idea is not only whether a programming sequence is feasible,
but also whether it's practical, reliable and secure.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
We must see it differently then.
A js function can be called to obtain the CB, this could be onload.
If you have the CB text you can invoke a post to the server.

What 's not trivial?
Unless you expect to read other CB formats like EMF or so?


"Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
re:
> Hmm, maybe i was to harsh.

Nah, you weren't "harsh". You were mistaken.
I know it's hard to accept that sometimes.

re:
> It must be seen as local stuff.

That task is not simply "local stuff". There's a server involved.

Passing the contents of a client's clipboard to an IIS server
running ASP.NET is not a trivial undertaking. Not in the least.

Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Edwin Knoppert" <ne**@hellobasi c.com> wrote in message
news:43******** **************@ text.nova.plane t.nl...
> Hmm, maybe i was to harsh.
> But you get the idea.
> It must be seen as local stuff.
>
>
> "Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
> news:uc******** *****@TK2MSFTNG P15.phx.gbl...
>>I would have liked to see sample code for doing that,
>> in ASP.NET, if it's that easy.
>>
>> Maybe you didn't take into account that the clipboard class
>> is in the System.Windows. Forms namespace ( which, as
>> Craig told you, cannot be accessed by ASP.NET server-side ) ?
>>
>> Even if it were to be accessed, it would be the *server's* clipboard
>> that's accessed, if this thing is running server-side, wouldn't it ?
>>
>> So, that leaves, as the only alternative, to write a client-side program
>> which captures client data, in sync with the current ASP.NET context,
>> have the user install it and run it so that the correct data is captured
>> client-side,
>> and figure out a way to insert the clipboard's contents to the server, in context
>> with the current request.
>>
>> That last part doesn't seem too complicated, although it's certainly not "easy".
>>
>> The first part certainly is complicated, and that's why I wondered why you
>> described the procedure as "once obtained it is easy to transmit to the server".
>>
>> That "once obtained" is what you overlooked.
>>
>>
>>
>> Juan T. Llibre, ASP.NET MVP
>> ASP.NET FAQ : http://asp.net.do/faq/
>> ASPNETFAQ.COM : http://www.aspnetfaq.com/
>> Foros de ASP.NET en Español : http://asp.net.do/foros/
>> =============== =============== ========
>> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
>> news:dm******** **@azure.qinip. net...
>>>I did see this work on a live website, not mine.
>>> It did work.
>>> It was there to proof that the CB could be read.
>>
>>> "Juan T. Llibre" <no***********@ nowhere.com> schreef in bericht
>>> news:ug******** ******@TK2MSFTN GP12.phx.gbl...
>>>> re:
>>>>> MSIE supports obtaining the user's clipboard.
>>>>> Once obtained it is easy to transmit to the server.
>>>>
>>>> Please post sample code.
>>>>
>>>> Juan T. Llibre, ASP.NET MVP
>>>> ASP.NET FAQ : http://asp.net.do/faq/
>>>> ASPNETFAQ.COM : http://www.aspnetfaq.com/
>>>> Foros de ASP.NET en Español : http://asp.net.do/foros/
>>>> =============== =============== ========
>>>> "Edwin Knoppert" <in**@pbsoft.sp eedlinq.nl> wrote in message
>>>> news:dm******** **@azure.qinip. net...
>>>>> MSIE supports obtaining the user's clipboard.
>>>>> Once obtained it is easy to transmit to the server.
>>>>>
>>>>>
>>>>> "Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> schreef in bericht
>>>>> news:uH******** ******@TK2MSFTN GP15.phx.gbl...
>>>>>> ad wrote:
>>>>>>> Hi,
>>>>>>> How can we get the content of clipboard with program?
>>>>>>
>>>>>> client-side (on the user's PC): you can't. you don't have access to it...
>>>>>> server-side:
>>>>>> http://msdn.microsoft.com/library/de...classtopic.asp
>>>>>>
>>>>>> --
>>>>>> craig
>>>>>> Microsoft MVP - ASP/ASP.NET
>>
>>
>
>



Nov 23 '05 #15
Juan T. Llibre wrote:
re:
MSIE supports obtaining the user's clipboard.
Once obtained it is easy to transmit to the server.


Please post sample code.


Juan, see my reply (sibling post of yours) for a quick example, or one
way of doing it. It does work, but this example is somewhat limited in
its effectiveness.

Which going back to the conversation you and Edwin had (further below in
this thread) there's a lot of reasons to not do this unless you're in a
very controlled environment where you know it's even possible to work
all the time.

--
craig
Microsoft MVP - ASP/ASP.NET
Nov 23 '05 #16
re;
there's a lot of reasons to not do this unless you're in a very controlled environment
where you know it's even possible to work all the time.
Yeah, that's what I've been trying to explain to Edwin in the thread.


Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
ASPNETFAQ.COM : http://www.aspnetfaq.com/
Foros de ASP.NET en Español : http://asp.net.do/foros/
=============== =============== ========
"Craig Deelsnyder" <cdeelsny@NO_SP AM_4_MEyahoo.co m> wrote in message
news:eV******** ********@TK2MSF TNGP10.phx.gbl. .. Juan T. Llibre wrote:
re:
MSIE supports obtaining the user's clipboard.
Once obtained it is easy to transmit to the server.


Please post sample code.


Juan, see my reply (sibling post of yours) for a quick example, or one way of doing it.
It does work, but this example is somewhat limited in its effectiveness.

Which going back to the conversation you and Edwin had (further below in this thread)
there's a lot of reasons to not do this unless you're in a very controlled environment
where you know it's even possible to work all the time.

--
craig
Microsoft MVP - ASP/ASP.NET

Nov 23 '05 #17

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2242
by: xyz | last post by:
I have a menu item to handle clipboard actions (cut, copy, paste). When I paste text that I copied from a Hungarian web page, the display looks normal on my RichTextBox, but the text retrieved from the clipboard is corrupted. For example, a U with double accent ( byte code x'FB' ) is replaced by a question mark in my txtEdit.Text after a Paste operation. It seems that the Clipboard.GetText() is changing the data. How is it possible to...
8
11480
by: LG | last post by:
Just have a question with regards to the clipboard, and how to read what other applications (Adobe InDesignCS) place in the clipboard. I am currently in the process of creating a booklet from a database, and I need the data to be laid out in a tabular format, and set out in a specific way. At the current point in time, I am copy/pasting the raw text from the database into a table layout in InDesign. What I was thinking is that if I could...
7
11651
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard is proving to be more difficult. These pictureboxes are bound to an AccessDB. If the user wants to add an image, they select an image using an OpenFileDialog: Dim result As DialogResult = Pic_Sel.ShowDialog() If (result = DialogResult.OK) Then
0
1910
by: James Russo | last post by:
Hello, I have an application which requires an image to be retrived from the clipboard. So, I am writting a quick C# windows application to take images from a webcam and store a single frame on the clipboard so it can be pasted into this other application. My solution is working fine with all applications (mspaint, word, wordpad) except the one I need it to work with. I've contacted the vendor of the application, but I haven't been able...
7
3857
by: Newbie | last post by:
How do I clear the clipboard in VB.NET 2003? TIA Newbie
15
12313
by: Peter Duniho | last post by:
I'm trying to use .NET and C# to draw a metafile copied to the clipboard by another application (Word 2003 in this case, but it shouldn't matter). I naively thought that I'd be able to use the Clipboard class to get an EnhancedMetafile or MetafilePict object from the Clipboard, use that to create a new Metafile object, and then draw that Metafile object using Graphics.DrawImage. It doesn't seem to be that simple.
1
18689
by: Figmo | last post by:
Wow.....this is darned odd.... I have an app that integrates with other applications. It registers a global hotkey with Windows. When the hotkey executes it sends a CTRL-C to the active window (any application) to copy whatever text is selected to the clipboard. It then issues a C# Clipboard.GetText(...) and does some processing with this string. All is good, no errors thus far.
8
2506
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the problem. The program uses windows api to get a handle to a palette from the clipboard. The palette needs to be put there by another program - maybe Photoshop.
20
7024
by: Joe Duchtel | last post by:
Hello - I have the following code to get a bitmap from the clipboard and to save it to a *.png file ... Dim lData As IDataObject = Clipboard.GetDataObject() If lData.GetDataPresent(DataFormats.Bitmap) Then Dim lPictureBox As New PictureBox
0
10908
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10587
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10295
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9426
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7018
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5682
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4487
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3136
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.