WPCubed Product Support

Copy WPT Text into Clipboard

I has to put a WPT Text into the clipboard from my own code ...
i has a WPT Text

<!WPTools_Format V=518/>
<table mode=32 wpst

and i would like to put it into the clipboard so if a past it in a RichtText that it gets all formating from the WPT
a simple Clipboard.AsText := '...' didn't work

#1 ♥ 0
6.2k Views 3 users read 1 min

i have no TWPRichText in this case .... I just generate a simple <b>Text</b> and would like to put htis into the clipboard ...
so taht the user can paste it into any TWPRichText ...

#3 ♥ 0

I tried it but when i use the normal CF_TEXT than i get for the text

<b>Test</b>

the text

<b>Test</b>

and nut
Test

in bold ...

#5 ♥ 0
support

How to you read out the text - with AsANSIString?

If there is the bold flag, the trext must have been marked as bold.

If you want to read ANSI text without any formatting use

AsANSIString('ANSI')

For HTML

AsANSIString('HTML')

Should be all pretty straightforward

#6 ♥ 0
This category is archived. No new posts are possible.