An even easier way to print both rich text and plain text documents is to use the Print method of the TRichEdit component. The Print method accepts a string parameter that you can use to name your current print job. This name appears in the print manager.
Here's an example of how to use the Print method:
RichEdit1.Print('TRichEdit Print Job');