运行了这样一个语句以后
  Application.CreateForm(TQR_dsb, QR_dsb);
然后关闭窗口然后从新运行这句程序就出错了!

解决方案 »

  1.   

    "a component named QR_dsb already exists"
    就是这个错误.
      

  2.   

    if not Assigned(form10) then form10:=TForm10.Create(nil);
    form10.QuickRep1.PreviewModal;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    procedure TForm10.FormClose(Sender: TObject; var Action: TCloseAction);
    begin
    Action:=caFree;
    end;procedure TForm10.FormDestroy(Sender: TObject);
    begin
    Form10:=nil;
    end;
      

  3.   

    我用的是dephi 自带的报表窗口,它自己带一个关闭按钮,该窗口也没有onclose时间的.
      

  4.   

    a component named QR_dsb already exists
    一个叫做QR_dsb的组件已经存在你的窗体是怎么显示出来的?又是怎么关闭的?最好把代码贴出来看看
      

  5.   

    我用的是dephi 自带的报表窗口,它自己带一个关闭按钮,该窗口也没有onclose事件的.