Loading RTF text from database into TRichEdit

后端 未结 2 1899
心在旅途
心在旅途 2021-01-17 19:59

I am currently in the process of migrating our software solution from Delphi 7 to 2010. Mostly the changes have been simple and there are only a small amount of hurdles left

2条回答
  •  死守一世寂寞
    2021-01-17 20:50

    When PlainText is False, LoadFromStream() first attempts to load the RTF code, and if that fails then LoadFromStream() attempts to load the stream again as plain text. That has always been the case in all Delphi versions. With the introduction of Unicode, I suppose something could have broken in LoadFromStream()'s EM_STREAMIN callback handler. I suggest you step into LoadFromStream()'s actual source code with the debugger and see what is really happening.

提交回复
热议问题