How to insert picture into TRichEdit in Delphi?

后端 未结 3 476
庸人自扰
庸人自扰 2020-12-21 05:30

I searched over internet for how to inserting picture in RichEdit. I only found inserting TImage into Richedit, or other 3rd part components to do

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-21 06:11

    I used a mix of TJVRichEdit and OLE, assigned Word Document 97-2003 to my OLEContainer, after editing in Word environment save it as RTF:

    OLEContainer.OLEObject.SaveAs(Save_Path, $00000006);
    

    and then load it into JVRichEdit, works well!

提交回复
热议问题