PowerBuilder 12:CopyRTF 不复制所有文本

发布于 2024-10-08 12:34:13 字数 598 浏览 0 评论 0原文

还有其他人遇到过这个问题吗? 我的商店终于开始将代码从 PB8 迁移到 PB12.1。我的问题是 RTE 控制。

此代码片段位于 fw_save_rtf() 事件中。

     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....

rte_1.SaveDocument 行的结果是保存所有措辞。 CopyRTF 方法的结果是删除文档中的最后一行。

我什至尝试过:

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

这样可以保存更多的文本,但仍然不是全部。

如有任何意见或建议,我们将非常欢迎。

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

全部不再 2024-10-15 12:34:13

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

Sybase 在 10.5 版左右对 Rich Text 控件进行了更改。您可能需要深入研究发行说明以查看行为发生了哪些变化。

How about rte_1.CopyRTF(False, Detail!)?

Sybase made changes to the Rich Text control around version 10.5. You might want do dig around in the release notes to see what behavior changed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文