FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error on Report Group
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Error on Report Group

Posted: Wed Nov 19, 2014 12:55 PM
Today I made a report Group and I'm seeing there is an error when I use group and graphic mode



I use a simply command for the group

GROUP ON Upper(TA->USCITA) ;
HEADER "Tipo di Uscita: " + TA->USCITA);
FOOTER "Totale voci "+(alltrim(::aGroups[1]:cValue))+ ;
" ("+ltrim(str(::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 March-April 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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Report Group

Posted: Thu Nov 20, 2014 12:05 PM

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 March-April 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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Report Group

Posted: Thu Nov 20, 2014 12:53 PM
Please try this sample




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

Code (fw): Select all Collapse
#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 March-April 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
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Report Group

Posted: Sun Nov 23, 2014 05:43 PM

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 March-April 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
Posts: 682
Joined: Tue Feb 14, 2006 09:48 AM

Re: Error on Report Group

Posted: Wed Dec 24, 2014 08:45 AM
FWH 14.12
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Report Group

Posted: Wed Dec 24, 2014 09:01 AM

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 March-April 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

Continue the discussion