Use clipboard in web app

In my app, I use clipboard to paste some html text into ppt. The
program runs correctly in VS2005 development server, and IIS 5.1 in
WinXP SP2. But it failed on WinServer 2003. The thread blocks when any
clipboard functions are called.( ClipBoard operations must be in a STA
thread, so I create a new thread to do it)

What should I do if I want to use clipboard in IIS 6? Is there any
config work about clipboard permission need to be done?

By the way, is there any way of showing html in ppt without using the
troublesome clipboard?
Fade [ Do, 03 April 2008 05:30 ] [ ID #1934520 ]

Re: Use clipboard in web app

Your html is on the client machine. So is the clipboard. Your server app is
on the server. How are you providing data from the client's machine
clipboard to the server?

In your development environment the server and the client are on the same
machine, that's why it worked, not because of IIS versions.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


"Fade" <Fade.teng [at] gmail.com> wrote in message
news:56e8f397-98bd-4348-a620-9f98a51b8582 [at] s8g2000prg.googleg roups.com...
> In my app, I use clipboard to paste some html text into ppt. The
> program runs correctly in VS2005 development server, and IIS 5.1 in
> WinXP SP2. But it failed on WinServer 2003. The thread blocks when any
> clipboard functions are called.( ClipBoard operations must be in a STA
> thread, so I create a new thread to do it)
>
> What should I do if I want to use clipboard in IIS 6? Is there any
> config work about clipboard permission need to be done?
>
> By the way, is there any way of showing html in ppt without using the
> troublesome clipboard?
Eliyahu Goldin [ Do, 03 April 2008 11:19 ] [ ID #1934537 ]

Re: Use clipboard in web app

On 4=D4=C23=C8=D5, =CF=C2=CE=E75=CA=B119=B7=D6, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD... [at] mMvVpPsS.org> wrote:
> Your html is on the client machine. So is theclipboard. Your server app is=

> on the server. How are you providing data from the client's machineclipboa=
rdto the server?
>
> In your development environment the server and the client are on the same
> machine, that's why it worked, not because of IIS versions.
>
> --
> Eliyahu Goldin,
> Software Developer
> Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net =

>
> "Fade" <Fade.t... [at] gmail.com> wrote in message
>
> news:56e8f397-98bd-4348-a620-9f98a51b8582 [at] s8g2000prg.googleg roups.com...
>
>
>
> > In my app, I useclipboardto paste some html text into ppt. The
> > program runs correctly in VS2005 development server, and IIS 5.1 in
> > WinXP SP2. But it failed on WinServer 2003. The thread blocks when any
> >clipboardfunctions are called.(ClipBoardoperations must be in a STA
> > thread, so I create a new thread to do it)
>
> > What should I do if I want to useclipboardin IIS 6? Is there any
> > config work aboutclipboardpermission need to be done?
>
> > By the way, is there any way of showing html in ppt without using the
> > troublesomeclipboard?- =D2=FE=B2=D8=B1=BB=D2=FD=D3=C3=CE=C4=D7=D6 -
>
> - =CF=D4=CA=BE=D2=FD=D3=C3=B5=C4=CE=C4=D7=D6 -

Maybe you misunderstand me. It is the server clipboard that I want to
use. I use clipboard to help with generating PPT file on the server,
because I don't know any other way of putting some html text into a
PPT. I put the text in clipboard, then use TextRange.Paste(), paste
the text into a PPT textbox, the html will be translated to richtext
automaticly. All these happen only at the serverside.
Fade [ Sa, 05 April 2008 10:08 ] [ ID #1936080 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Use clipboard in web app

Vorheriges Thema: How to Make Web Application Project Use IIS
Nächstes Thema: Microsoft Web Developer 2008 Express edition and ASP.NET