Loss of style info of copied contents of a scilex contrl

Topics: Developer Forum
Oct 31, 2014 at 5:13 PM
Hi,
I am using the scilex control from Visual Prolog. I designed styles with different font sizes and background color. When I copy the contents of the control to the clipboard and from there to MS Word file, the foreground color and the font face is retained but the background color is always white and the fond sizes are equal.
How can I get a lossless textual copy of the text? Now only my graphical screen savers retain the picture of the scilex controls.
Coordinator
May 25, 2015 at 6:23 AM
From your description, I'm not entirely certain you're using the ScintillaNET control and now another wrapper around Scintilla. The native Scintilla control does not copy styles to the clipboard--only unstyled text.

However, v3 of Scintilla now hosted at GitHub does provide support for copying text to the clipboard in HTML and RTF format. Go check it out:
https://github.com/jacobslusser/ScintillaNET


Jacob