Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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, 2019Report 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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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, 2019Report 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,


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Member
posted Hide Post
Thanks .It working now as expected
 
Posts: 12 | Registered: August 29, 2019Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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

Copyright © 1996-2020 Information Builders