Focal Point
WRAP /Style in HTML CSS

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

March 01, 2005, 03:42 AM
<Vany>
WRAP /Style in HTML CSS
Hai,

We are trying to generate a report in Web Focus.
Output format is HTML.
we have many sections in the report
with
-HTMLFORM BEGIN
HTMLCODE
-HTMLFORM END

and also I have set HTMLCSS=ON
But, when i'm trying to set style for each of the columns like column width, wrap, sueeze,
The report is not being rendered correctly.
has anyone faced a similar issue?
Any workaround for this?
March 01, 2005, 07:07 AM
Tim Schraepen
I had the same problem some weeks ago.
And I came to the conclusion that those styling options only work with the PDF output type for example and not in HTML.
Same for page breaking by the way.
March 01, 2005, 09:25 AM
<JG>
? have you got an ACROSS in the report request

TYPE=REPORT,
COLUMN=N1,
WRAP=6.000000,
$

Works fine for HTML/HTMLTABLE output Except when there is an across.
March 01, 2005, 02:47 PM
<Pietro De Santis>
The first thing to do is NOT SET HTMLCSS=ON.

Then, using the WEBFOCUS stylesheet, assign CLASSes to the data columns. Then include the CSS stylesheet in you HTML page. Your CSS styles should now work. It's not a good idea mixing the classes created by HTMLCSS=ON and your own.
March 01, 2005, 04:09 PM
suzy_smith
Does anyone have a clue as to what SET HTMLCSS=ON does?

Or is there any documentation on the IBI site about what is contained in this "internal stylesheet"? I looked, but couldn't find what I wanted.

Or is it an actual file hiding somewhere among the many files installed by WebFOCUS?

We couldn't get a very simple .sty file to work correctly without SETting HTMLCSS=ON. The 2 columns being used in the heading kept running into each other.

But your advice, Pietro, is to not use it at all.

After reading the many chapters on stylesheets, I came away with the impression that ONLY WebFOCUS stylesheets could be made to work with all 3 output formats--web, pdf, and excel.
March 01, 2005, 04:41 PM
susannah
suzy...i applaud your comment. "style sheets " needs to be a whole topic a summit and a whole special doc area. "everything you ever wanted to know about..."
Pietro is my best source for help with style sheet problems.
We need a handle on what each focus command does and how to xlate it to what happens in real html.
March 01, 2005, 04:59 PM
<Pietro De Santis>
HTMLCSS "Creates an inline Cascading Style Sheet command in the HTML page that displays the report output"

It creates one, it does use an existing one. Set it to ON and view the source of the resulting HTML page. Somewhere near the top you will see an embedded CSS style sheet that was created by WebFOCUS.

Here's an example on how to wrap a column using CSS styling.


SET HTMLCSS=OFF
-RUN
TABLE FILE CAR
PRINT MODEL
BY COUNTRY
BY CAR
HEADING
" "
ON TABLE SET PAGE NOLEAD
ON TABLE HOLD AS HOLD01 FORMAT HTMTABLE
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, $
TYPE=DATA, COLUMN=MODEL, CLASS=CSS_MODEL, $
ENDSTYLE
END
-RUN

-HTMLFORM BEGIN





!IBI.FIL.HOLD01;

This message has been edited. Last edited by: <Mabel>,
March 01, 2005, 05:40 PM
suzy_smith
Thanks for the tip and the example, Pietro. I'll look at what WF generates and see whether we can duplicate the functionality in our external css.

Suzy