Поделиться через


HTML Copy extension from Pro Power Tools not working with Live Writer?

Dear readers,

I've just returned from a nice vacation only to find a couple of reports that my HTML Copy extension for VS 2010 doesn't work on some users machines. Among the affected users is our corporate vice president of Visual Studio, Jason Zander, who is an avid technology adopter. Jason was playing with Pro Power Tools and found that after pressing Ctrl+C in VS 2010, Live Writer doesn't display the option to preserve HTML format in their Paste Special dialog:

image

I cannot reproduce this on my machines. If anyone experiences this issue and would like to help investigate this issue, I would appreciate if you could reach out so I can investigate and debug. We might have to use remote debugging and remote assistance.

On the plus side, I've just fixed another bug reported by a user from China (article below in Chinese):

https://www.cnblogs.com/nicch/archive/2010/06/13/vs2010_powertools_copyashtml_fix.html

The bug was that the clipboard expects the HTML format be in UTF8 encoding, and the HTML fragment length specified in the HTML header needs to be in bytes, not char count:

https://msdn.microsoft.com/en-us/library/aa767917(VS.85).aspx

This resulted in copied fragments to be trimmed if they contained multibyte chars such as japanese or chinese characters. Here's the Connect bug about it that I fixed:

https://connect.microsoft.com/VisualStudioJapan/feedback/details/576886/productivity-power-tools-html

Many thanks to those who have reported it! You will see the fix in the next update of the Pro Power Tools.

Thanks!

Comments

  • Anonymous
    July 02, 2012
    The comment has been removed