Focal Point
how to draw a horizontal or vertical line

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

March 03, 2004, 09:40 PM
krishkasi
how to draw a horizontal or vertical line
Hi
Can any one solve give any tips on the following problem.
I wanted to draw some horizontal or vertical lines in the report as follows.

Titlea titleb | titlec titled
1 2 | 3 4
2 3 | 4 5
-------------------------------
3 5 | 7 9

Grid=on / off causes on / off thegrids for every column.
And the column and row will be changed dynamically according to the available data.
Please help me......
sample code is appreciated....
March 04, 2004, 06:25 AM
Mikel
The following example, combining FOCUS STYLE and CSS styles, works fine for me; drawing a border for a specific data column and top border for tabfooting.


TABLE FILE CAR
SUM
SALES
RCOST
DCOST
BY COUNTRY
ON TABLE SUBFOOT
"TOTAL:&|nbsp;&|nbsp; ON TABLE SET PAGE NOPAGE
ON TABLE HOLD FORMAT HTMTABLE
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
TYPE=DATA, COLUMN=P2, CLASS=rborder, $
TYPE=TITLE, COLUMN=P2, CLASS=rborder, $
TYPE=TABFOOTING, HEADALIGN=BODY, JUSTIFY=RIGHT, CLASS=tborder, $
TYPE=TABFOOTING, ITEM=1, JUSTIFY=CENTER, CLASS=tborder, $
TYPE=TABFOOTING, ITEM=2, CLASS=bborder, $
END
-RUN

-HTMLFORM BEGIN

!IBI.FIL.HOLD;
-HTMLFORM END
I hope this helps.
Regards,
Mikel

This message has been edited. Last edited by: <Maryellen>,


WebFOCUS 8.1.05, 8.2.01
March 08, 2004, 06:45 PM
krishkasi
HI MIKE
AMTRYING TO OUTPUT MY EPORT INTO PDF FORMAT.HOW CAN WE DO THAT THEN.
MARGIN=ON,OFF IS WORKING FINE FOR THE DATA HEADING AND FOOTING.bUT MY NEED IS ONLY A VERY FEW LINES IN THE HEADING PART NEEDS TO BE PUT IN TO A RECTANGLE BOX.
SO WE NEED TO DRAW THE HORIZONTA AND VERTICAL LINE.

ANY IDEA... WELCOME
March 08, 2004, 08:27 PM
RB
Hi,

I did not understand what exactly you need in the report.

If you want to add a line just after every total then you can do so by using
ON TABLE SUBTOTAL UNDERLINE command. This will give you the line until the end of the field.
If you need it for heading then,

TABLE FILE XYZ
PRINT ..
HEADING CENTER
"<16>*************"
"<16>* REPORT TITLE *"
"<16>*************"

I guess this would work.
March 08, 2004, 10:13 PM
krishkasi
hi,
my requirement is something as follows...

Heading Line 1
______________________________________________
| Heading Line2A Heading Line2B |
|_____________________________________________|
|Title 1 Title2 Title3 Title4 |
_____________________________________________|

How to draw the vertical lines to make the Heading and title combined together as a rectangle box.
March 08, 2004, 11:09 PM
Mikel
See the following references about PDF output:

- Adding borders and Grid Lines (with examples)
- Choosing an Alignment Method for Heading and Footing Elements
- Style Sheets features in PDF

Regards,
Mikel
March 10, 2004, 10:11 PM
krishkasi
Hi,
There is some default space(1line or 2 line) between the Heading and the Title part.I want to remove those spaces.
I tried with
type=heading,bottomgap=0,$
type=title,topgap=0,$
But still unable to eliminate those spaces.

Actually I want to elongate the grid of TITLE to few lines of the HEADING.Can i do that....

My diagram in the last posting explains the same....
November 02, 2005, 03:01 PM
claymeone
Try this to remove the spaces: ON TABLE SET PAGE NOLEAD