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).
This message has been edited. Last edited by: FP Mod Chuck,
January 10, 2020, 02:45 PM
MartinY
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
January 11, 2020, 11:11 AM
Gowtham
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,
January 12, 2020, 12:46 PM
dbeagan
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,