Link to home
Create AccountLog in
Avatar of John86a
John86a

asked on

Follow Up - Anyway to SAVE *.doc, *.docx using RichEdit?

This question is a follow up of: This one

Now that I can open, can it be saved as .doc/.docx after editing? (converting the styles of the edit to a word document as well)

Thanks.
Avatar of jimyX
jimyX

You can use save to file and add the name you prefer:
procedure TForm1.Button2Click(Sender: TObject);
begin
  RichEdit1.Lines.SaveToFile('c:\xxx2.doc');
end;

Open in new window

BTW the style becomes RTF not Word document that way.
Avatar of John86a

ASKER

Yeah, that's why I asked if there was any way to save it doc instead of rtf
ASKER CERTIFIED SOLUTION
Avatar of jimyX
jimyX

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of John86a

ASKER

Thank you