How to change print orientation in Delphi?

edited November 2005 in FastReport 3.0
Hi..

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

  • Bert BinnenmarschBert Binnenmarsch Terneuzen
    edited 2:38AM
    Have you tried:

    uses
    Printers;

    begin
    Printer.Orientation := poPortrait;
    ...
  • edited 2:38AM
    Yep, I've tried this but w/o any success!

    Any other ideas...? Developer...?
  • gordkgordk St.Catherines On. Canada.
    edited 2:38AM
    Read page 26 of the programmers manual.pdf.
    ;)

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.