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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.
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).
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,
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, 2010