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

Controlar pagina

edited November 2007 in End User
Ol? galera, tenho um relat?rio que preciso controlar a impress?o de paginas
a ser impressas. Tipo a cada 500 paginas preciso zerar o contador de paginas
para que ele recomece novamente apartir da pagina 2. Alguem sabe como fazer
isso ?

Comments

  • edited November 2007
    Hi Gilberto,

    For future reference please post using your real name.

    Try using a TppVariable component to count the pages in your report. Set
    the TppVariable to calculate on PageStart. This will also allow you to
    easily reset the number when your page count has reached a certain value.
    Inside the OnCalc event you could do the following...

    begin
    Value := Value + 1;

    if Report.PageNo mod 500 = 0 then
    Value := 0;
    end;


    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

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