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 ?
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;
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com