Home > Back-end >  Add a print FastReport variable number per print 1 at a time
Add a print FastReport variable number per print 1 at a time

Time:11-18

Add a print serial number per print FastReport + 1 at a time, a great god, please guide!

CodePudding user response:

Variables can be invoked and forms of interaction, in print in print before the event can also add the code to modify the variable's value,

CodePudding user response:

QryReport. SQL. TEXT:='Select 0 AS' + QuotedStr (' number ') ', t. * FROM Select queries (you) T ';

.
=====================
In the query to increase an initial value of 0
the serial number fieldQryReport. Write code AfterOpen event:
QryReport. FieldByName (' serial number). OnGetText:=MyIDNum;


In the process of writing: MyIDNum join:
If (your judgment conditions) then
Text:=IntToStr (INC (YOURVar));

CodePudding user response:

Every time when printing a number + 1 call the next time value
  • Related