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

How do print 2-n page with different topmargin then 1. Page

edited January 2004 in General
How can i define to print the 2-n Pages with other TopMargin then the 1.
Page

Regards
Andy

Comments

  • edited January 2004
    Hi Andy,

    In the Report.OnStartPage, change the page margin based on the
    Report.PageNo. You will have to use the page object in the Report.Engine
    class.

    procedure TForm1.ReportStartPage(Sender: TObject);
    begin
    if Report.PageNo > 1 then
    Report.Engine.Page.PrinterSetup.MarginTop := 1.0;
    end;

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.