if not Assigned(Form3) then begin
   Application.CreateForm(TForm3,Form3);
   try
   if Printer.Printers.Count=0 then
    begin
    ShowMessage('请首先安装打印机');
    Form3.Close;
   end  else
    with Printer do
    begin
      BeginDoc;
      Form3.QuickRep1.Print; 
      Form3.Close;
      EndDoc;
    end;