How to change print orientation in Delphi?
Hi..
I'm using the following code to generate a 'silent' report:
Greets,
Marc
I'm using the following code to generate a 'silent' report:
? ?
? frxReport.LoadFromFile("MyReportName");
? frxReport.ReportOptions.Name := Application.Title;
? frxReport.PrintOptions.Printer := "MyPrinterName";
? if not(frxReport.PrepareReport) then
? ? Exit;
? frxReport.PrintOptions.ShowDialog := False;
? frxReport.Print;
How do I change the print orientation before (landscape, portrait)...?Greets,
Marc
Comments
uses
Printers;
begin
Printer.Orientation := poPortrait;
...
Any other ideas...? Developer...?