Focal Point
Draw horizontal line in a free form report

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

July 09, 2004, 07:39 PM
<kj>
Draw horizontal line in a free form report
How to draw a horizontal line in a free form report?
After each group of fields, I need to draw a line to differentiate the groups.

Any suggessions would be greately appreciated.


Thanks,
kj
July 09, 2004, 07:49 PM
reFOCUSing
Try the following:

TABLE FILE CAR
PRINT
COUNTRY
MODEL
BY CAR
ON CAR UNDER-LINE
ON TABLE SET ONLINE-FMT HTML
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,$
ENDSTYLE
END
-RUN

The line 'ON CAR UNDER-LINE' is what puts the line on the report.
Hope this helps.
July 09, 2004, 07:57 PM
<kj>
The kind of out put i need is like this.

SET STYLE = OFF
SET STYLEMODE=FIXED
TABLE FILE CAR
HEADING
"<25>Country:"<25>Model:"-------------------------------------------------------------------"
"<50>Sales: PRINT COUNTRY NOPRINT
ON TABLE SET ONLINE-FMT PDF
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,$
ENDSTYLE
END

Instead of dashed line I would like to have a horizontal line some thing like
in HTML.

Thanks,
kj
July 09, 2004, 08:03 PM
<WFUser>
DEFINE FILE filename
HRLINE/A10 = '
';
END
TABLE FILE filename
PRINT ...
BY ...
ON field SUBFOOT
""
END

Of course this will only work for HTML and you could add of attributes such as height, width and color.
July 09, 2004, 08:08 PM
<kj>
It works fine in HTML with HR tag. How to do it for PDF?
July 09, 2004, 08:38 PM
<Vipul>
Hey KJ,

use this in yout HTMLFORM




border-bottom is what you need, in your style for example you can do this:

TYPE=HEADING, LINE=1, SIZE=9, OBJECT=FIELD, CLASS=border, $

where in CLASS for your case it will be CLASS=border-bottom

Vipul

This message has been edited. Last edited by: <Mabel>,
July 09, 2004, 08:47 PM
<kj>
Thank you all for your quick response.
But I need it in PDF output.
Any idea how to get it in PDF?

thanks,
kj
July 09, 2004, 09:33 PM
jmdoyl1
One option if you dont want to use Underline (__) is to create a gif then position and size it in your header.

TYPE=HEADING, IMAGE=(LINENAM), POSITION=(-1.0300 +1.1500000), SIZE=(30.65000 .50000), $

Tad Schwendiman, Workers Comp in Utah, presented that as an option during an iBUG meeting and Summit '03 last year.

Jon
July 13, 2004, 02:59 PM
Tony A
KJ,

It may be because of the number of responses in quick succession but CurtisA had the best(?) method (IMHO) and that was to use -

ON byvalue UNDER-LINE

Where byvalue is your sort field.

Edited to add -

Yes, this does work in PDF