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

Printing a text on report , not on first print

edited July 2003 in General
Hi,

I need to add a text on a report and it has to be on all pages except the
first print.

For example:

I have a report which gives 2 pages when i print, i print it 3 times.
The text must be on pages 3-6, not on 1 & 2

If my report gives 1 page and i print 3 times it must be on pages 2 & 3.
If i only print it once, the text can not appear.

Any idea what the best way is to handle?

Thanks,Franky

Comments

  • edited July 2003
    > I have a report which gives 2 pages when i print, i print it 3 times.

    In the label's OnPrint event, put either of the following lines:

    ppLabel1.Visible := (ppReport1.Page > 1);
    ppLabel1.Visible := (ppReport1.PageNo > 1);

    (The second one is documented in the help file, the first one is not, so you
    are probably safer with the second).

    Ed Dressel
    Team DM
  • edited July 2003
    Hi Franky,

    The following example may help.

    http://www.digital-metaphors.com/tips/MarkPagesWithCopy.zip

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2003
    Thanks Nico & Ed.

    Looking at that example right now, looks just what i need :).

    I think Ed's code would print the label on each page that is not the first
    right?

    That's not what i ment, sorry if i was unclear.

    I wanted a way to detect the nr of the printjob, not put it on the first
    print and put it on the others.
    I can detect how much times the doc will be printed with
    Report.PrinterSetup.Copies but i didn't find a way to detect in the RAP what
    nr is printing.

    Anyway, the example will get me there, thanks.

    Franky


This discussion has been closed.