1

Has anyone else experienced this issue? my shop is finally getting around to migrating code from PB8 to PB12.1. My issue is with the RTE control.

This code snippet is located in an fw_save_rtf() event.

     if rte_1.modified and NOT isNull(ldt_eff_dt) and NOT isNull(ls_frm_ver_doc) then

        rte_1.SaveDocument("c:/temp/saveme", FileTypeRichText!, EncodingANSI!)
        ls_rtf = rte_1.CopyRTF(True, Detail!)

        etc....

The result of the rte_1.SaveDocument line is all wording is saved. The result of the CopyRTF method is the last line in the document is dropped.

i've even tried:

rte_1.SelectTextAll(Detail!)
ls_rtf = rte_1.CopyRTF(True, Detail!) 

and that gets a little more of the text to save, but still not everything.

Any comments or suggestions would be most welcome.

Thank you.

4

1 回答 1

0

怎么样rte_1.CopyRTF(False, Detail!)

Sybase 在 10.5 版左右对 Rich Text 控件进行了更改。您可能想在发行说明中四处寻找以了解哪些行为发生了变化。

于 2010-12-17T22:35:49.733 回答