Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Adding Line Space within Row
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Adding Line Space within Row
 Login/Join
 
Member
posted
Hi ,

I am having Product Description column in PROD_DETAIL table which will have 3000 character . Currently we are showing this Description in PDF output using WRAP .I need to add line space between each wrap(within each row).


SAMPLE CODE
************
TABLE FILE PROD_DETAIL
PRINT PROD_ID
PROD_DESC
ON TABLE SET STYLE *
     UNITS=IN,
     PAGESIZE='Letter',
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
     MARKUP=ON,
$
TYPE=REPORT,
	 SQUEEZE=ON,
         FONT='ARIAL',
         STYLE=NORMAL,
         SIZE=8,
         LINEBREAK='LF',
	 LEFTGAP=0.30,
	 
$
TYPE=REPORT,
	 COLUMN=P1,
	 WRAP=1.75,
	 RIGHTGAP=0.00,
	 STYLE=BOLD,
	 SIZE=12,
$
TYPE=REPORT,
	 COLUMN=P2,
	 LEFTGAP=0.1,
	 WRAP=5,
	 TOPGAP=1.0,
	 BOTTOMGAP=1.0,
$
ENDSTYLE
END

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 12 | Registered: August 29, 2019Reply With QuoteReport This Post
Virtuoso
posted Hide Post
First, please always use the code tag when posting sample code/data/result
It's the last icon on the ribbon that looks like the below.
</>

Then try this and change SUBFOOT SIZE to have a larger blank line
TABLE FILE PROD_DETAIL
PRINT PROD_DESC
BY PROD_ID
ON PRODO_ID SUBFOOT
""
ON TABLE SET STYLE *
 UNITS=IN,
 PAGESIZE='Letter',
 SQUEEZE=ON,
 ORIENTATION=PORTRAIT,
 MARKUP=ON,
$
TYPE=REPORT,
	SQUEEZE=ON,
	FONT='ARIAL',
	STYLE=NORMAL,
	SIZE=8,
	LINEBREAK='LF',
	LEFTGAP=0.30,
$
TYPE=REPORT,
	COLUMN=P1,
	WRAP=1.75,
	RIGHTGAP=0.00,
	STYLE=BOLD,
	SIZE=12,
$
TYPE=REPORT,
	COLUMN=P2,
	LEFTGAP=0.1,
	WRAP=5,
	TOPGAP=1.0,
	BOTTOMGAP=1.0,
$
TYPE=SUBFOOT,
	SIZE=1,
$
ENDSTYLE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2296 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Reply With QuoteReport This Post
Member
posted Hide Post
The above Code will add line space for each row like for each prod_Id. But i need to add space within row whenever text is wrapping to new line.
let's see one sample product desc

[result]
PROD_ID PROD_DESC
======= ==========
100
The Barrel Chair is one of sean and Catherine's favorite pieces.This oversized chair is perfect for those looking to spend hours sprawled out
reading their favorite book or for those who just want to cuddle with the one they love. the barrel chair's handpicked fabric has special sheen
that creates a look of total elegance.

101 The above Code will add line space for each row like for each prod_Id. But i need to add line space with row let's see one sample product desc
The Barrel Chair is one of sean and Catherine's favorite pieces.This oversized chair is perfect for those looking to spend hours sprawled out
reading their favorite book or for those who just want to cuddle with the one they love. the barrel chair's handpicked fabric has special sheen
that creates a look of total elegance.

Expected

PROD_ID PROD_DESC
======= ==========
100 The above Code will add line space for each row like for

each prod_Id. But i need to add line space with row let's see one

sample product desc

The Barrel Chair is one of sean and Catherine's favorite

pieces.This oversized chair is perfect for those looking to spend

hours sprawled out

reading their favorite book or for those who just want to

cuddle with the one they love. the barrel chair's handpicked

fabric has special sheen

that creates a look of total elegance.

101 The above Code will add line space for each row like for

each prod_Id. But i need to add line space with row let's see one

sample product desc

The Barrel Chair is one of sean and Catherine's favorite

pieces.This oversized chair is perfect for those looking to spend

hours sprawled out

reading their favorite book or for those who just want to

cuddle with the one they love. the barrel chair's handpicked

fabric has special sheen

that creates a look of total elegance.
[/result]

This message has been edited. Last edited by: Gowtham,
 
Posts: 12 | Registered: August 29, 2019Reply With QuoteReport This Post
Platinum Member
posted Hide Post
The following code is an example of adding space within the text. It appears to work ONLY in PDF output format. Tested in WF8206.

TABLE FILE ggsales
PRINT 
COMPUTE TEXT/A350 = 'The Barrel Chair is one of sean and Catherine''s favorite pieces. This oversized chair is perfect for those looking to spend hours sprawled out reading their favorite book or for those who just want to cuddle with the one they love. The barrel chair''s handpicked fabric has special sheen that creates a look of total elegance.' ;
BY PCD
WHERE RECORDLIMIT IS 5
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=REPORT, SIZE=8, BORDER=LIGHT, $
TYPE=REPORT, COLUMN=TEXT, WRAP=5, $
TYPE=DATA, TOPGAP=0.1, BOTTOMGAP=0.1, WRAPGAP=OFF, $    
ENDSTYLE
END

The above code will work without the WRAPGAP=OFF which is the default. To suppress the spacing within the text change to WRAPGAP=ON (the ON vs. OFF behavior seems counterintuitive to me).

This message has been edited. Last edited by: dbeagan,


WF 8.2.06
Win10 / IE11
AHTML EXL2K PDF
 
Posts: 159 | Registered: October 19, 2010Reply With QuoteReport This Post
Member
posted Hide Post
Thanks .It working now as expected
 
Posts: 12 | Registered: August 29, 2019Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Adding Line Space within Row

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.