1
I have a very complex report in fastreport on a certain page the structure is a Masterdata -> Detaildata and within this Detail have the required components, Everything works 100%, it happens that in a fxtMmo need to put the number of the sheet this will number in sequence each spreadsheet of Detail.
I did the following, in the code I created a global variable ContaPlanilha: integer = 0;
In the frxMemo Beforeprint: ContaPlanilha := ContaPlanilha +1;
In the text of frxMemo I put "Planilha número: [ContaPlanilha]"
It takes the value of the variable and puts it in the frxMemo as it should be, it turns out that even having only 1 test record, the variable has the value set as 2 is like passing twice in the Onbeforeprint, but as said only has 1 single record...
I am using "Double Step" because it is a complex report and I need some values of variables that are only available in this condition
It seems to me that this "Double Step" is causing this problem, but how to create an incremental variable without this problem?
Killed the stick Andrey, that’s right
– Marcelo
Very good the answer...
– Edu Mendonça