Focal Point
[CLOSED] underline on report columns in PDF

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/85710496

April 03, 2009, 10:59 AM
saggy
[CLOSED] underline on report columns in PDF
How do we get underline on report columns in PDF format, but the line starting from certain position and ending at certain position as well.

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


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


April 03, 2009, 05:34 PM
Kerry
Hi Saggy,

Underlines on columns are there by default. What exactly are you looking to do? Have you tried using Stylesheets to control this?

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
April 05, 2009, 08:58 AM
saggy
Hi kerry,
i tried using the underline attribute on the columns in the report.I am able to display a underline a well But i want to control the start and endpoint of the underline which i display.If you could provide me any pointers regarding this it wud be of great help.


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


April 05, 2009, 04:42 PM
Waz
Although I cannot remember when, I think this same question has been asked before.

I would suggest doing a search of the forum


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 06, 2009, 09:47 AM
Francis Mariani
SET BYDISPLAY=ON
TABLE FILE CAR
SUM
SALES
COMPUTE SEQ/D2 = SEQ + 1; NOPRINT
COMPUTE UL/A1 = IF SEQ FROM 5 TO 9 THEN '1' ELSE '0'; NOPRINT
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
ON TABLE SET STYLE *
GRID=OFF, $
TYPE=DATA, STYLE=UNDERLINE, WHEN= UL EQ '1', $
ENDSTYLE
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 06, 2009, 04:25 PM
Waz
saggy, when you said underline a column, do you mean the title or the data ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 07, 2009, 10:50 AM
saggy
its on Data Waz..
and that to the line has to start frm a specific point and end at a specific point


7.6.4
Unix & Windows
Excel,HTML,PDF,PPT,AHTML


April 07, 2009, 11:01 AM
Francis Mariani
Did you take a look at my suggestion?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
April 07, 2009, 04:40 PM
Waz
saggy, francis' code is probably what you want.

you need to flag the records to underline and use a stylesheet entry with a macro. (WHEN=).


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 07, 2009, 05:14 PM
mgrackin
Saggy,

do you need to draw one line in the same place on every page or does the line only show up after certain data rows?

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


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
April 07, 2009, 05:24 PM
Waz
Mickey, I think your question it for saggy. Smiler


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

April 07, 2009, 05:43 PM
mgrackin
Correction has been made Smiler


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
April 07, 2009, 06:00 PM
Tom Flynn
This "may" be what you are looking for, BUT, it is very tedious:

  
TABLE FILE CAR
SUM
    RETAIL_COST AS 'Retail Cost'
	DEALER_COST AS 'Dealer Cost'
	  COMPUTE XPCT/P6.2B% = (RETAIL_COST / DEALER_COST) * 100; AS '%'
	SALES       AS 'Sales'
BY COUNTRY AS 'Country'
ON TABLE SET PAGE-NUM OFF
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=LANDSCAPE,
     LEFTMARGIN  = 0.550000,
     RIGHTMARGIN = 0.250000,
     TOPMARGIN   = 0.35000000,
     BOTTOMMARGIN= 0.55000000,
$
TYPE=REPORT,
     GRID=OFF,
     FONT='ARIAL',
     SIZE=10,
$
-GOTO SKIP_LINES
TYPE=REPORT, NAME='TITLE_1', OBJECT=LINE, POSITION=(0.55 0.80), DIMENSION=(0.95 0.0), BORDER=1.0,$ 
TYPE=REPORT, NAME='TITLE_2', OBJECT=LINE, POSITION=(1.55 0.80), DIMENSION=(0.75 0.0), BORDER=1.0,$ 
TYPE=REPORT, NAME='TITLE_3', OBJECT=LINE, POSITION=(2.45 0.80), DIMENSION=(0.75 0.0), BORDER=1.0,$ 
TYPE=REPORT, NAME='TITLE_4', OBJECT=LINE, POSITION=(3.30 0.80), DIMENSION=(0.65 0.0), BORDER=1.0,$ 
TYPE=REPORT, NAME='TITLE_5', OBJECT=LINE, POSITION=(4.00 0.80), DIMENSION=(0.50 0.0), BORDER=1.0,$ 
TYPE=TITLE,STYLE=-UNDERLINE,$
-SKIP_LINES
ENDSTYLE
END
-RUN


Run the code the way it is, then, comment out GOTO SKIP_LINES and see the difference...

HTH

Tom


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
April 07, 2009, 06:26 PM
mgrackin
What Tom posted would be my suggestion if the lines are static.


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
April 07, 2009, 06:35 PM
Waz
The solution depends on what the report and data needs. As we don't know if the data is static or the lines are static or the data is dynamic, then at lease saggy has two options.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!