Minimum margins

ekzaktekzakt FRANCE
edited 2:13AM in FastReport 3.0
Hello,

I'm trying to retreive minimum margins for the currently selected printer. FastReport defaults to 1cm, but many printers need a higher bottom margin. I would like the margin to be set automatically to the smallest printable value. Is it possible, or must users configure their settings manually ?

Comments

  • edited 2:13AM
    It is possible (needed to change frxClass.pas).

    procedure TfrxReportPage.SetDefaults;
    begin
    FLeftMargin := frxPrinters.Printer.LeftMargin;
    FRightMargin := frxPrinters.Printer.RightMargin;
    FTopMargin := frxPrinters.Printer.TopMargin;
    FBottomMargin := frxPrinters.Printer.BottomMargin;
    FPaperSize := frxPrinters.Printer.DefPaper;
    FPaperWidth := frxPrinters.Printer.DefPaperWidth;
    FPaperHeight := frxPrinters.Printer.DefPaperHeight;
    FOrientation := frxPrinters.Printer.DefOrientation;
    UpdateDimensions;
    end;
  • ekzaktekzakt FRANCE
    edited 2:13AM
    Great ! Thanks.

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.