procedure TForm1.BitBtn1Click(Sender: TObject);
begin
with PrintDialog1 do
  begin
  Options := [poPrintToFile];
  PrintToFile := True;
  if Execute then
    begin
    if PrintToFile then
      begin
      SaveDialog1.Title := 'Print to File: ';
      if SaveDialog1.Execute then
        RichEdit1.Lines.SaveToFile(SaveDialog1.FileName);
      end
    else
      RichEdit1.Print('');
    end;
  end;
end;一般后缀为prn,之后可用print命令打印。

解决方案 »

  1.   

    是文本可存为.txt
    是报表可存为.qrp
    一般如楼上所说。
      

  2.   

    和*.ps是一回事,用Adobe Distiller 可以将他转换成pdf.
      

  3.   

    同意 cpls,ps是epson定义的打印机标准文件发送到打印机就可以看到了!
      

  4.   

    用ms word打开,看到的是控制码文本。没有效果。
    直接将*.prn改成*.ps,用Adobe Distiller转换成*.pdf。
    ps=PostScript,由Adobe制定。
      

  5.   

    哪个地方有免费的Adobe Distiller下载
      

  6.   

    请问哪里有免费的Adobe Distiller下载