Problem with report class

Post Reply
User avatar
Eoeo
Posts: 222
Joined: Mon Jun 04, 2012 12:00 pm

Problem with report class

Post by Eoeo »

I have an archive with 11.000 customers and I want print only the customers not are active



ACTIVATE REPORT oInforme:oReport FOR ALLTRIM(UPPER((oDCli)->ACTIVO))=="NO";
ON END ( oInforme:oReport:StartLine(), oInforme:oReport:EndLine(), oInforme:oReport:StartLine(), ;
oInforme:oReport:Say(1, 'Totale clienti: '+Tran(oInforme:oReport:nCounter, '@E 999,999'), 1),;
oInforme:oReport:EndLine() )



Report class print the Report right as you can see here ( there is only one record) but it make an error when print the numbers of Records founded

Image


how I can resolve this error ?
Marcelo Via Giglio
Posts: 1033
Joined: Fri Oct 07, 2005 3:33 pm
Location: Cochabamba - Bolivia

Re: Problem with report class

Post by Marcelo Via Giglio »

Hello,

the report data to print is defined by FOR ALLTRIM(UPPER((oDCli)->ACTIVO))=="NO";
this means that you have many other row out of this condition, you can use a counter in the one of the
ON STARTLINE n++
ON ENDLINE n++

then at end you print this counter

try and comment

saludos

Marcelo
Post Reply