FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Add a line on report from xbrowse (NO HTML)
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Add a line on report from xbrowse (NO HTML)
Posted: Tue Dec 12, 2023 02:39 PM
in a Report type printout created with the Treport class and printed from an Xbrowse table I have this problem:



After the text "Provincia:AG" there is a list of cities

I would like to add a white line after the text "Provincia:AG"

I create the prints using xbrowse's method Report()
Code (fw): Select all Collapse
  oBrw:Report( cTitle, , , ;
         { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) } )
on MySetup function I insert the Group sintax

Code (fw): Select all Collapse
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
           .f.,oRep))     //leject
           oRep:bPostGroup :=  { || oRep:Newline() }
I wish the Line after the header {|| aGroup[nGroup]+" :"+oRep:aGroups[1]:cValue},;

How I can resolve ?

I allready try with oRep:bStartGroup := { || oRep:Newline() } NOT RUN OK
If I insert oRep:bStartLine := { || oRep:Newline() } then inser newline after the header but insert lines also another part ( each line od records)

as you can see here

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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Add a line on report from xbrowse (NO HTML)
Posted: Tue Dec 12, 2023 06:34 PM
Using the default behavior of :Report( nil, .t., .t., nil, { 1 } )
The group headers are in bold and adequate to distinguish from the body.

Code (fw): Select all Collapse
   USE CUSTOMER NEW SHARED VIA "DBFCDX"
   SET ORDER TO TAG STATE
   GO TOP

   XBROWSER ALIAS() COLUMNS "State","FIRST","CITY","SALARY" SETUP ( ;
      oBrw:Salary:nFooterType :=  AGGR_SUM, ;
      oBrw:MakeTotals(), ;
      oBrw:bRClicked := { |r,c,f,o| o:Report( nil, .t., .t., nil, { 1 } ) } )
Regards



G. N. Rao.

Hyderabad, India
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM
Re: Add a line on report from xbrowse (NO HTML)
Posted: Wed Dec 13, 2023 11:05 AM
Nages,

I need to have a function for setup to insert many vars

on your image
I need to insert a line whereis the red arrow
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