Recent

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

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
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 latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
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 latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

 

TinyPortal © 2005-2018