Topic: How to load .docx documents to RichEdit
The following code allows me to save RichEdit text to a word document .docx
procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
var FilePath: String;
begin
FilePath:='C:\Temp\document.docx';
Form1.RichEdit1.SaveDocX(FilePath);
end;
Does anyone know how to read back the document to Form1.RichEdit1? There is no Form1.RichEdit1.LoadDocX(). Please advise.