Posted 16 years ago
by Jeff Pek
-
Autodesk, Inc.
Version: 4.0.0271
Platform: .NET 2.0
Environment: Windows XP (32-bit)
When we use a SyntaxEditor control, and set its CutCopyDragWithHtml property to True, we're finding that the HTML clipboard content that it generates is incomplete -- i.e., only a fragment of HTML. For example:
<span style="color: #0000FF;">using</span><span style="color: #000000;"> System;
</span><span style="color: #0000FF;">using</span><span style="color: #000000;"> System.Collections.Generic;
</span>
This causes problems with applications such as OneNote that want to paste HTML. It winds up pasting nothing (at least it looks like nothing).
According to MSDN (http://msdn.microsoft.com/en-us/library/ms649015(VS.85).aspx), it would seem that only having this "little piece" of HTML is not correct.
It seems that you need the other HTML "structure" wrapping this fragment.
<span style="color: #0000FF;">using</span><span style="color: #000000;"> System;
</span><span style="color: #0000FF;">using</span><span style="color: #000000;"> System.Collections.Generic;
</span>
This causes problems with applications such as OneNote that want to paste HTML. It winds up pasting nothing (at least it looks like nothing).
According to MSDN (http://msdn.microsoft.com/en-us/library/ms649015(VS.85).aspx), it would seem that only having this "little piece" of HTML is not correct.
It seems that you need the other HTML "structure" wrapping this fragment.