Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   Quick Report y Creacion de ventanas (https://www.clubdelphi.com/foros/showthread.php?t=41362)

vroa74 13-03-2007 23:02:40

Quick Report y Creacion de ventanas
 
hola:

Hestoy leyendo la cara oculta de Delphi, y estoy midificando un programa que estoy haciendo para aprender delphi.
Entrando al Tema.
Los datos los tengo en el Form1. (Table1...)
Tengo un form5 el cual hace los filtrado el cual lo llamo de esta forma
Código Delphi [-]
var  F: TForm5;
begin
      F := TForm5.Create(Application);
      F.ShowModal;
end;
y funciona bien.

Tengo un form6 el cual es un reporte que toma los datos cuando lo quiero ejecutar pogo esta sintaxis.

Código Delphi [-]
var  F: TForm6;
begin
      F := TForm6.Create(Application);
      F.Show;
end;
Solo que el reporte me lo presenta el formato como si estubiera en forma de diseño.

jhonny 13-03-2007 23:18:17

Supongamos que el reporte se llama QuickReport1... En ese caso tendrías que hacer:
Código Delphi [-]
 
var  F: TForm6;
begin
      F := TForm6.Create(Application);
      try
        F.QuickReport1.Preview; //Esta linea es la que hace que aparezca el reporte      
      finally
        F.Release;      
      end;      
end;

vroa74 13-03-2007 23:27:08

Mucha gracias.
Se me habia olvidado mandar a llamar la visualizacion del reporte.
mecha gracias.


La franja horaria es GMT +2. Ahora son las 06:24:10.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi