FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with report class
Posts: 222
Joined: Mon Jun 04, 2012 12:00 PM
Problem with report class
Posted: Mon Oct 01, 2012 10:53 PM
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:StartLine(), oInforme:EndLine(), oInforme:StartLine(), ;
oInforme:Say(1, 'Totale clienti: '+Tran(oInforme:nCounter, '@E 999,999'), 1),;
oInforme: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




how I can resolve this error ?
Posts: 1088
Joined: Fri Oct 07, 2005 03:33 PM
Re: Problem with report class
Posted: Tue Oct 02, 2012 12:52 AM

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

Continue the discussion