Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-03

HTML on clipboard

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Thompson

G'day,

Just found this code on the wiki...
http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard

On Windows with Microsoft products at least, this doesn't work... What's required is more complex:
https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx

However, I can't see that code being posted onto the wiki without testing, so before I correct the wiki, I'd like to know under what conditions the wiki code is good for...

I think it was Mattias that submitted that code to the wiki...

Mattias: Do you know or remember which platforms and applications that code worked with?

I'm thinking that the code on the wiki is probably good for Linux and possibly Mac, and am just looking for confirmation before I update the wiki...

Cheers

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150312/b294e1a1/attachment.html>

Reply by email

Mattias Gaertner
to Michael Thompson
Show quoted text 17 lines
G'day, Just found this code on the wiki... http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard On Windows with Microsoft products at least, this doesn't work... What's required is more complex: https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx However, I can't see that code being posted onto the wiki without testing, so before I correct the wiki, I'd like to know under what conditions the wiki code is good for... I think it was Mattias that submitted that code to the wiki... Mattias: Do you know or remember which platforms and applications that code worked with?

AFAIR an example is Linux, OpenOffice.
I don't know if OO still supports this.

I'm thinking that the code on the wiki is probably good for Linux and possibly Mac, and am just looking for confirmation before I update the wiki...

Mattias

Reply by email

Michael Thompson
to Mattias Gaertner
Mattias Gaertner wrote
Michael Thompson wrote: > Mattias: Do you know or remember which platforms and applications that

code

> worked with? AFAIR an example is Linux, OpenOffice. I don't know if OO still supports this.

Sweet. I've left the original code in as a quick google shows at least several python libraries out there that use the the 'text/html' mime on the clipboard as well, so there's possibly more targets than just OO.

Thanks for the quick reply.

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150312/bb37490a/attachment.html>

Reply by email