I need to print without grids (if possible - with red color arial 9) in left top corner, immediately as html page starts.
If I do
TABLE FILE DATABASES PRINT CON_DIR NOPRINT WHERE CON_DIR EQ '&&DB_PATH'; ON TABLE SUBHEAD "Reporting DB: " END
Then I am getting text as needed, just at the beginning of page. But it is with grids (and not arial, not red and not size=9).
If I am starting to play with styles, i.e. like that
TABLE FILE DATABASES PRINT CON_DIR NOPRINT WHERE CON_DIR EQ '&&DB_PATH'; ON TABLE SUBHEAD "Reporting DB: "
ON TABLE SET PAGE NOLEAD ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE SET STYLE * TYPE=REPORT, GRID=OFF,$ ENDSTYLE END
Then I can get grids switched off, right color, size etc, but I am getting several empty lines at the beginning of page. Text is not placed at the top of page. I have small frame, just for one line of text. Text becoming invisible, I need to scroll
p.s. I have tried to search for solution, but have not found a solution in forum
TIA for your advise,
PiterThis message has been edited. Last edited by: <Kathryn Henning>,
Wf7704/WF8,Win64/32
September 30, 2013, 08:29 AM
Dave
Piter,
two possible reasons.
--First-- You should set the pagemargin and cellpadding to 0. Odd thing is, these are only available with output format PDF.
Options: 2nd Tab. ( format ) Page Margins: Set all to 0.
Both are only available in PDF, but work fine in HTML.
Then set the output back to HTML.
--Second-- Check your padding and margin of the iFrame you but the output in. Set those to 0 as well.
Good luck, Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
September 30, 2013, 08:49 AM
Piter
Thank you Dave! After your advise I have played more and have found that GRID=OFF makes several empty lines. So I have left Grids, but have added BORDER=LIGHT and now it is quite fine when I do it like :
ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * LEFTMARGIN=0.000000, RIGHTMARGIN=0.000000, TOPMARGIN=0.000000, BOTTOMMARGIN=0.000000, RIGHTGAP=0.000000, LEFTGAP=0.000000, FONT=ARIAL, SIZE=9, STYLE=BOLD+ITALIC, COLOR='RED', BORDER=LIGHT, $ ENDSTYLE
Wf7704/WF8,Win64/32
September 30, 2013, 09:40 AM
Francis Mariani
Use CSS to style the HTML:
TABLE FILE CAR
PRINT COUNTRY NOPRINT
WHERE COUNTRY EQ 'ENGLAND';
ON TABLE SUBHEAD "REPORTING DB: "
ON TABLE SET PAGE NOLEAD
ON TABLE NOTOTAL
ON TABLE SET STYLE *
TYPE=REPORT, GRID=OFF, $
ENDSTYLE
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN
-HTMLFORM BEGIN
<html>
<head>
<style type="text/css">
body
{
margin: 0px;
font-family: "Arial", sans-serif;
font-size: 9pt; color: red;
}
</style>
</head>
<body>
!IBI.FIL.H001;
<body>
</html>
-HTMLFORM 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