* * *

Author Topic: Copy HTML to Clipboard  (Read 1695 times)

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1123
Copy HTML to Clipboard
« on: March 11, 2015, 09:59:04 pm »
I've just noticed on the wiki that someone has posted a small snippet of code for pasting html onto the clipboard...  I've tried to go back through the revisions to find who posted, but I can't find them - simply far too many revisions...

http://wiki.lazarus.freepascal.org/Office_Automation#Copy_HTML_to_the_clipboard

In my experience, this doesn't work with Microsoft Office apps.  While 'text/html' is the seemingly obvious mime to use, in fact Microsoft want to see 'HTML Format' - Sigh...
https://msdn.microsoft.com/en-us/library/aa767917%28v=vs.85%29.aspx

This was in fact the very first item I had to research when I started playing with lazarus :-)  I posted my solution then to
http://forum.lazarus.freepascal.org/index.php/topic,11191.msg151451.html#msg151451

I'm happy to simplify that code and update the wiki, but before I do that I want to contact the original author of that snippet on the wiki.   It's entirely possible that that code snippet worked for them in applications other than those written by Microsoft...  In which case I append my solution to theirs, not replace it...

So:  if you're that author, or you know them, can you ask them to drop me a message?

Thanks.
Lazarus Trunk/FPC Trunk on Linux & Windows [7, 8.1]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1123
Re: Copy HTML to Clipboard
« Reply #1 on: March 11, 2015, 11:01:23 pm »
Played 20 questions and think I've found the author...
Lazarus Trunk/FPC Trunk on Linux & Windows [7, 8.1]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus