Error on Report Group

Post Reply
User avatar
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Error on Report Group

Post by Silvio.Falconi »

Today I made a report Group and I'm seeing there is an error when I use group and graphic mode

Image

I use a simply command for the group

GROUP ON Upper(TA->USCITA) ;
HEADER "Tipo di Uscita: " + TA->USCITA);
FOOTER "Totale voci "+(alltrim(::oReport:aGroups[1]:cValue))+ ;
" ("+ltrim(str(::oReport:aGroups[1]:nCounter))+")" ;
FONT 2



Possible none saw it in these years ? (I have a oldest fwh release)
How I can resolve it
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Error on Report Group

Post by Silvio.Falconi »

Any help?

I think there's an error on METHOD Footer( nRow ) CLASS TRGroup

but I not Know how resolved it
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Error on Report Group

Post by Silvio.Falconi »

Please try this sample

Image


test.dbf is that you found on .\samples\report\

Code: Select all | Expand



#include "FiveWin.ch"
#include "report.ch"

STATIC oReport

Function Rep12()

     LOCAL oFont1, oFont2

     DEFINE FONT oFont1 NAME "ARIAL" SIZE 0,-10
     DEFINE FONT oFont2 NAME "ARIAL" SIZE 0,-10 BOLD

     USE TEST NEW
      index on state tag state to test


     REPORT oReport TITLE  "*** Fivewin Report ***"      ,;
                           "States begining with an A"   ,;
                           "and Salary greater than 1000" ;
          FONT oFont1, oFont2 ;
          PREVIEW

     COLUMN TITLE "St"         DATA Test->State

     COLUMN TITLE "First Name", "Last Name" ;
            DATA  Test->First, Test->Last

     COLUMN TITLE "Street", "City"  ;
            DATA  Test->Street, Test->City

     COLUMN TITLE "   Salary"  ;
            DATA  Test->Salary ;
            TOTAL              ;
            RIGHT              ;
            PICTURE "9,999,999";
            FONT 2             ;
            SIZE 9

     GROUP ON Test->State ;
           FOOTER "Total State "+oReport:aGroups[1]:cValue+ ;
                  " ("+ltrim(str(oReport:aGroups[1]:nCounter))+")" ;
           FONT 2


     END REPORT

     oReport:CellView()

     ACTIVATE REPORT oReport                 ;
          WHILE Test->State = "A"            ;
          FOR Test->Salary > 1000            ;
          ON STARTGROUP oReport:NewLine()    ;
          ON END MessageBeep()

     CLOSE TEST

     oFont1:Release()
     oFont2:Release()

RETURN NIL
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Error on Report Group

Post by Silvio.Falconi »

Someone sad me to purchase the new release of Fwh Hoping to resolve this problem
but also with fwh 14.09 there is this problem
Someone can hep me pls ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Biel EA6DD
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca
Contact:

Re: Error on Report Group

Post by Biel EA6DD »

FWH 14.12
Image
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Silvio.Falconi
Posts: 7136
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: Error on Report Group

Post by Silvio.Falconi »

Biel good but perhaps there is also another peoblem at "TOTAL OF STATE" if you see there are some vertical lines are not on the bottom prrhaps becsuse thrre is the text of the subgroup. I think the best solution is that to divide a group from another but i not tried it also
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply