Skip to Content
0
Former Member
Sep 08, 2015 at 10:26 AM

Rich Text Control - Visible tags on .pasteRTF()

115 Views

Getting the text from the database and pasting it to the Richt Text Control, I get some of the tags/formatting visible, which I don't see how to get rid of.

The text owidctlpar gets stored together with the text originally entered in the control.

1. Get data and paste in control

rte_control.setredraw(FALSE)

ls_input = lds_data.getitemstring(ids_data.getrow(), 'description')

rte_control.pasteRTF(ls_input, Detail!)

rte_control.setredraw(TRUE)

2. Get the text from control and store to database

rte_control.setredraw(FALSE)

ls_input = rte_control.copyRTF(FALSE, Detail!)

lds_data.setitem(lds_data.getrow(), 'description', ls_input)

rte_control.setredraw(TRUE)

Checking the string in the database, I can find the owidctlpar, which seems to be part of the header.

\headery720\footery720\pgwsxn11905\pghsxn16838\marglsxn0\margtsxn0\margrsxn0\margbsxn0\pard\itap0

owidctlpar

For everytime I save, I get a new owidctlpar part in the string.

Attachments