Ver Mensaje Individual
  #5  
Antiguo 19-05-2003
__cadetill __cadetill is offline
Miembro
 
Registrado: may 2003
Posts: 3.387
Reputación: 25
__cadetill Va por buen camino
bien

supongamos que form1 es el MDIChild que tienes y Form2 es donde esta el report, ok?

Pues haces algo como....

Código:
procedure TForm1.Button2Click(Sender: TObject);
begin
     Form2 := TForm2.Create(Self);
     try
        Form2.QuickReport1.Preview;
     finally
            FreeAndNil(Form2);
     end;
end;
claro esta que el DataSet asociado al Report ha de estar activo. Como ves, un Report no se llama con un ShowModal, sino que se llama al metido Print (o Preview o PreviewModal,...) del Report

Espero te sirva
Responder Con Cita