No, the clipboard supports multiple formats to represent the same data and
applications are supposed to issue as many formats as they can. Among other
formats, Excel produces HTML format on the clipboard, and it should be
possible to paste that. I don't want to use Excel format, because I'm only
interested in the text organised in table format and the application should
also be able to handle data from other sources (a table in Word, from a
website, etc).

Now the problem is not so much due to the fact I'm getting the HTML from the
clipboard. The fact is, that the data I retrieve from the clipboard IS VALID
HTML. If I write it to a file first and then navigate the browser to that
file, it's displayed as expected. However, if I use the IPersistStreamInit
interface to load the data, as described at the MSDN site, it does not
display well. So this seems to be an internal browser problem. What I'm
looking for, is a workaround for this, or another way to directly load HTML
text into the browser, because I don't want to use temporary file - unless
I've got no choice, of course.

Peter Laman
Senior Software Engineer
Lance ICT Group
Roermond, the Netherlands
http://www.lance-safety.com
-
"Nobody ever died of hard work", they say. But why take the risk? (Ronald
Reagan)

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Eddie Shipman
Sent: dinsdag 23 mei 2006 05:10
To: Delphi-Talk Discussion List
Subject: RE: Pasting HTML


But to paste Excel, you must change the format to Excel, not HTML, isn't
that
what your webbrowser is expecting?


--- Peter Laman <[EMAIL PROTECTED]> wrote:

> What do you mean exactly? I just do a RegisterClipboardFormat('HTML
Format')
> to obtain a proper format ID and then parse the HTML content that's on the
> clipboard.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Eddie Shipman
> are you changing your Clipboard Format to Excel before the paste
operation?
>
> --- Peter Laman <[EMAIL PROTECTED]> wrote:
> > But, if a copy an entire Excel worksheet to the clipboard and then paste
> it,
> > the webbrowser shows the HTML text in stead of the document. The problem
> is
> > not with the HTML code itself, because if I write the code to a file
first
> > and then navigate to it, it works.
> >
>
> __________________________________________________
> Delphi-Talk mailing list -> Delphi-Talk@elists.org
> http://www.elists.org/mailman/listinfo/delphi-talk
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> Delphi-Talk@elists.org
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to