Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I need to have multiple thi

Status
Not open for further replies.

VANDY3

Programmer
Mar 27, 2003
6
IN
Hello,
I need to have multiple thick horizontal lines in my heading. I tried to use the underline option but the desirable thickness is not being achieved.
Please can anyone be of help.

Regards.
 

If your output is HTML, you can use the following CSS style:

Code:
.head_line {
	border-bottom : thick solid Black;
}
or something similar.

Than you can reference it within your report, e.g.:

Code:
SET CSSURL='/path/to/the/stylefile.css'
TABLE FILE CAR
ON TABLE SET PAGE-NUM OFF
HEADING CENTER
" HEAD1 "
" "
" HEAD2 "
" "
SUM SALES
 BY COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=HEADING, STYLE=BOLD, $
TYPE=HEADING, CLASS='head_line', LINE=2, $
TYPE=HEADING, CLASS='head_line', LINE=4, $
ENDSTYLE
END

Hope this helps
Grzegorz
 
Hello,
My report output is in PDF format. The heading is in multiple lines and the various lines are separated by horizontal lines. Sometimes there may be even two lines to be drawn between two text lines.
I tried using the underline option but then I don't get the desired thickness.


I need something like this in the heading
____________________________
My heading line 1
______________________________
My heading line 2
My heading line 3
________________________________
________________________________

Regards.
 

The simple solution is similar to this:

TABLE FILE CAR
HEADING CENTER
"HEAD1"
" "
"HEAD2"
" "
SUM SALES
BY COUNTRY
ON TABLE SET STYLE *
-* The RIGHTMARGIN should be set to fit the "thicklines"
-* to the size of the report:
TYPE=REPORT, RIGHTMARGIN=6, $
TYPE=HEADING, STYLE=BOLD, SIZE=2, BACKCOLOR=BLACK, LINE=2, $
TYPE=HEADING, STYLE=BOLD, SIZE=2, BACKCOLOR=BLACK, LINE=4,$
ENDSTYLE
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET PAGE-NUM OFF
END

Hope this helps
Grzegorz
 
Hello,
When I use BACKCOLOR=BLACK,
the line gets drawn, but the formatting goes haywire.

Regards.
 
Could you send the sample of the code ?

Continuing with the example :
Code:
TABLE FILE CAR
HEADING CENTER
"HEAD1"
" "
"HEAD2"
" "
SUM SALES
BY COUNTRY
ON TABLE SET STYLE *
TYPE=REPORT, RIGHTMARGIN=6, $
TYPE=HEADING, STYLE=NORMAL, SIZE=1, BACKCOLOR=BLACK, LINE=2, $
TYPE=HEADING, STYLE=NORMAL, COLOR=RED, FONT=ARIAL, LINE=1, $
TYPE=HEADING, STYLE=BOLD, SIZE=2, BACKCOLOR=BLACK, LINE=4,$
TYPE=HEADING, STYLE=ITALIC, COLOR=LIME, FONT=HELVETICA, LINE=3, $
ENDSTYLE
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET PAGE-NUM OFF
END

I cannot see any problems with the formatting. The report output looks as expected.

Regards
Grzegorz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top