Add a line on report from xbrowse (NO HTML)

Post Reply
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Add a line on report from xbrowse (NO HTML)

Post by Silvio.Falconi »

in a Report type printout created with the Treport class and printed from an Xbrowse table I have this problem:

Image

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: Select all | Expand

  oBrw:Report( cTitle, , , ;
         { |oRep, oBrw| MySetUp( oRep, oBrw, oDbf,aGroup,nGroup,lEject,aCampi ) } )
 
on MySetup function I insert the Group sintax

Code: Select all | Expand

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

Image
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
nageswaragunupudi
Posts: 10691
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Add a line on report from xbrowse (NO HTML)

Post by nageswaragunupudi »

Using the default behavior of :Report( nil, .t., .t., nil, { 1 } )
The group headers are in bold and adequate to distinguish from the body.
Image

Code: Select all | Expand

   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
User avatar
Silvio.Falconi
Posts: 7104
Joined: Thu Oct 18, 2012 7:17 pm

Re: Add a line on report from xbrowse (NO HTML)

Post by Silvio.Falconi »

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
Image
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