PowerBuilder 12:CopyRTF 不复制所有文本
还有其他人遇到过这个问题吗? 我的商店终于开始将代码从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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.