473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

using the server clipboard

I have been using the windows clipboard during some SERVER processing on a
page request. It has worked on another machine but now calling
Clipboard.GetDataObject() returns null. The code is executed in an
impersonation block (currenlty me as a machine admin).

Are there any settings (security?) that I need to set to make it work again.

windows 2000, ISS5, Framework 1.1, VS 2003

adam

p.s. all this is on the SERVER I am NOT trying to move data from the client
to the server.
Nov 17 '05 #1
2 1258
well not quite the worst. I'm sure if we put our heads together we could
produce something more convoluted and fragile :) However the code (that did
work on another machine) uses the clipboard to get some text from an
automated word application (I know this is not recommended and no, I will
never let it happen again). The text is grabbed via the clipboard to get
the HTML fragment which contains more useful information than the Text
property of the selection. This is for an existing product not a new build.

I think I have decided it will be quicker to try another solution that I'm
making up in my head now.

cheers,

adam

"Kevin Spencer" <ke***@takempis.com> wrote in message
news:ei**************@tk2msftngp13.phx.gbl...
If all this is on the server, why are you using the ClipBoard? You have all kinds of memory space to store and retrieve data from. The ClipBoard is
about the worst possible one I can think of to use.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Complex things are made up of
lots of simple things.

"adam" <no****@msdn-beacon-ct.co.uk> wrote in message
news:eI**************@TK2MSFTNGP12.phx.gbl...
I have been using the windows clipboard during some SERVER processing on a page request. It has worked on another machine but now calling
Clipboard.GetDataObject() returns null. The code is executed in an
impersonation block (currenlty me as a machine admin).

Are there any settings (security?) that I need to set to make it work

again.

windows 2000, ISS5, Framework 1.1, VS 2003

adam

p.s. all this is on the SERVER I am NOT trying to move data from the

client
to the server.


Nov 17 '05 #2
Hello Adam,

I think firstly we need to find the difference between working machine and the erroneous machine. Please check IIS setting,
IIS servcie setting in control panel... to make sure that all are the same.

Kevin is right here that using clipboard is not so convenient. If you just want to get some text and don't want its format, you
could store the data into disk files, filemap, or even socket.

Thanks.

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Reply-To: "adam" <no****@msdn-beacon-ct.co.uk>
!From: "adam" <no****@msdn-beacon-ct.co.uk>
!References: <eI**************@TK2MSFTNGP12.phx.gbl> <ei**************@tk2msftngp13.phx.gbl>
!Subject: Re: using the server clipboard
!Date: Thu, 7 Aug 2003 08:30:58 +0100
!Lines: 56
!X-Priority: 3
!X-MSMail-Priority: Normal
!X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
!X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
!Message-ID: <#K**************@TK2MSFTNGP12.phx.gbl>
!Newsgroups: microsoft.public.dotnet.framework.aspnet
!NNTP-Posting-Host: 62.254.210.110
!Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:165648
!X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
!
!well not quite the worst. I'm sure if we put our heads together we could
!produce something more convoluted and fragile :) However the code (that did
!work on another machine) uses the clipboard to get some text from an
!automated word application (I know this is not recommended and no, I will
!never let it happen again). The text is grabbed via the clipboard to get
!the HTML fragment which contains more useful information than the Text
!property of the selection. This is for an existing product not a new build.
!
!I think I have decided it will be quicker to try another solution that I'm
!making up in my head now.
!
!cheers,
!
!adam
!
!"Kevin Spencer" <ke***@takempis.com> wrote in message
!news:ei**************@tk2msftngp13.phx.gbl...
!> If all this is on the server, why are you using the ClipBoard? You have
!all
!> kinds of memory space to store and retrieve data from. The ClipBoard is
!> about the worst possible one I can think of to use.
!>
!> --
!> HTH,
!>
!> Kevin Spencer
!> Microsoft MVP
!> .Net Developer
!> http://www.takempis.com
!> Complex things are made up of
!> lots of simple things.
!>
!> "adam" <no****@msdn-beacon-ct.co.uk> wrote in message
!> news:eI**************@TK2MSFTNGP12.phx.gbl...
!> > I have been using the windows clipboard during some SERVER processing on
!a
!> > page request. It has worked on another machine but now calling
!> > Clipboard.GetDataObject() returns null. The code is executed in an
!> > impersonation block (currenlty me as a machine admin).
!> >
!> > Are there any settings (security?) that I need to set to make it work
!> again.
!> >
!> > windows 2000, ISS5, Framework 1.1, VS 2003
!> >
!> > adam
!> >
!> > p.s. all this is on the SERVER I am NOT trying to move data from the
!> client
!> > to the server.
!> >
!> >
!>
!>
!
!
!
Nov 17 '05 #3

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

Similar topics

0
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...
2
by: Gey-Hong Gweon | last post by:
Is there a way to copy a PIL image to windows clipboard (as a dib image or a bitmap, I suppose)? What I would like to accomplish is to do a fast copy and paste of images from my python...
0
by: Stan | last post by:
In the old days of VB6, an Excel chart image could be pasted into a picture box with Clipboard using the following commands. xlApp.ActiveChart.ChartArea.Copy Picture1.Picture =...
5
by: TC | last post by:
Hello, Here is what I'm trying to do: -- Make sure both MS Excel and MS Word are running -- Create an Excel chart -- Save the Excel file -- Copy the Excel chart onto the clipboard using Ctrl...
6
by: Roohi | last post by:
hi I am trying to copy an image to a clipboard and then get a handle to the clipboard using API calls GetClipboardData(). Following is the snippet of our code. Could any one please point out...
3
by: keith | last post by:
I can use following codes to set and get object (serializable class) from Clipboar Clipboard.SetDataObject(obj) then DataObject data=new DataObject()...
0
by: agehm | last post by:
Hello, we have an asp.net-frontend backed completely with COM-Business-objects (all as in-process DLLs). The aspx-pages all use ASPCOMPAT=True (for STA). One DLL also uses MSChart-control .ocx and...
20
by: Randall Arnold | last post by:
I've got an asp.net page that dynamically generates an html table on the server side. On the client side, I need to copy the rendered table to the clipboard programmatically (using vbscript). I...
1
by: jobs | last post by:
I have some javascript that will paste clipboards text to a web form. cool. but what i'd like to be able to to do save or send an image in my clipboard to the server somehow. Anyway for javascipt...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.