FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Making GroupReport from Xbrowse
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Making GroupReport from Xbrowse
Posted: Mon Oct 30, 2023 09:38 AM
I grouped the records according to a field
in the xbrowse:report() print setup I go to print the groups
Code (fw): Select all Collapse
 
If nGroup >0
           IF lEject
           AAdd(oRep:aGroups,trGroup():New( bCampo2( afields, nGroup,oDbf ),; //campo
           {|| aGroup[nGroup]+" :"+oRep:aGroups[1]:cValue},;              //header
           {|| "Totale "+aGroup[nGroup]+": "+oRep:aGroups[1]:cValue+" ("+ltrim(str(oRep:aGroups[1]:nCounter))+")"},;  //footer
           {|| 1 },;   // Font
           .t.,oRep))    //leject
the problem I have and that I can't overcome is that when I print the group header it doesn't skip a line and the records are printed below too attached to the header as you can see in this figure



I tried with CRLF or by inserting oRep:newline() but nothing happens

any solution?
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