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

print page

edited May 2004 in Devices
hi....

how can i print 5 copies of page 1 and 3 copies of page 2
in report builder???

thanks in advance

Comments

  • edited May 2004

    In the Report.StartPage event, try implementing some code like this....

    procedure TForm1.ppReport1StartPage(Sender: TObject);
    var
    liCopies: Integer;
    begin
    if ppReport1.AbsolutePageNo = 1 then
    liCopies := 5
    else if ppReport1.AbsolutePageNo = 2 then
    liCopies := 3
    else
    liCopies := 1;

    ppReport1.Engine.Page.PrinterSetup.Collation := False;
    ppReport1.Engine.Page.PrinterSetup.DelegateCopies := True;
    ppReport1.Engine.Page.PrinterSetup.Copies := liCopies;


    end;


    --
    Nard Moseley
    Digital Metaphors Corporation
    www.digital-metaphors.com

    Best regards,

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