- Sverre Tvedt
- PowerBuilder
- Thursday, 1 November 2018 08:36 AM UTC
v. 2017 R3 build 1858. 32 bit application code, applies to both W7/W10.
We have migrated from 12.6 Classic, very smoothly, so far with the exception of the following possible bug:
I have a program module producing various types of RTF formatted documents.
In this I build the entire RTF string (is_rtf_doc), however sometimes piecewise, and using a richtextedit control I apply this method:
li_ret = rte_control.pastertf(is_rtf_doc)
saving to file:
rte_control.SaveDocument(ls_temp_file, FileTypeRichText!)
The RTF-file is at a later stage inputted to an MS Word template file and presented to end-users for document-editing.
Now, inspecting the temp file with Notepad I notice that the paragraph border line width instruction 'brdrw?' and a paragraph end has been removed. If I simply put it back into the temp file manually, using Notepad, I obtain the intended effect.
The crucial part of the original RTF-string looks like this: "\brdrb\brdrs\brdrw5\brsp20\par\"
In the saved document I find: "\brdrb\brdrs\brsp20"
So. The parameters \brdrw5 and \par have disappeared. This used to work in 12.6 and has been in production for two years. I have tried to put in spaces around the numerical value to no effect.
Of course I could try to save the original RTF string directly. But that would lead to a rather lengthy restructuring of the program architecture since some types of documents are produced with scores or hundreds of pastertf calls in sequence. In the present case there is just one such call, and this is the only document type using this parameter.
best regards,
sverre
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.