Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Impresión (https://www.clubdelphi.com/foros/forumdisplay.php?f=4)
-   -   Zoom to fit en QReports (https://www.clubdelphi.com/foros/showthread.php?t=86961)

joeyjr 28-10-2014 11:47:33

Zoom to fit en QReports
 
Hola, me gustaría como previsualizar un QReport en Zoom to Fit por defecto, soy incapaz de encontrar la propiedad y método que lo haga.

Muchas gracias.

ecfisa 28-10-2014 16:24:22

Hola joeyjr.

Fijate si te sirve del siguiente modo. Agrega un componente TQRPreview al formulario donde estes haciendo el reporte.

Y para la prueba, el siguiente código de ejemplo:
Código Delphi [-]
procedure TForm1.FormCreate(Sender: TObject);
begin
  QRPreview1.Align:= alClient;
end;

procedure TForm1.QuickRep1Preview(Sender: TObject);
begin
  QRPreview1.QRPrinter:= QuickRep1.Printer;
  QRPreview1.ZoomToFit;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  QuickRep1.Preview
end;

Saludos :)

joeyjr 29-10-2014 12:26:38

no me sale nada ..., no hay que mostrar el formulario o algo donde esta el quickreport?


La franja horaria es GMT +2. Ahora son las 09:57:19.

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