Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Adjusting margins on the fly

edited February 2003 in General
How can I allow my customers to adjust the report margins, if required,
during the preview process?

While the default 0.25 margins work well for most there seem to be some
printers that need more then that. I am aware of the Delphi TPageSetupDialog
but want to be able to do this within the RB preview if possible since
TPageSetupDialog encompasses more then what I want them to be able to see
and do with the report page.

BTW I am using the latest version of RB Pro...

Comments

  • edited February 2003

    The margins are controlled via the Report.PrinterSetup properties. See demo
    121 (dm0121.pas) in RBuilder\Demos\Reports\Demo.dpr. You should be able to
    modify this example to do what you need. Note that once the report is
    previewed, it needs to be regenerated to reflect the new settings. You can
    try calling Viewer.RegenerateReport to accomplish this.



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.