Delphi - Qreport

 
Vista:

Qreport

Publicado por Qreport (12 intervenciones) el 05/04/2006 00:27:20
Como se hace por codigo, para definir la orientacion de una hoja para imprimir.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Qreport

Publicado por Virum (484 intervenciones) el 05/04/2006 15:49:29
Hola:

De la ayuda de Delphi

This example uses two radio buttons on a form named Landscape and Portrait. The form also includes a button. When the user selects an orientation by clicking one of the radio buttons and then clicks the button to print one line of text, the print job prints using the selected orientation:

procedure TForm1.Button1Click(Sender: TObject);

begin
Printer.BeginDoc;
Printer.Canvas.TextOut(100,100,'Hi there');
Printer.EndDoc;
end;

procedure TForm1.PortraitClick(Sender: TObject);

begin
Printer.Orientation := poPortrait;
end;

procedure TForm1.LandscapeClick(Sender: TObject);

begin
Printer.Orientation := poLandscape;
end;

Suerte
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar