Give us feedback
Register your copy of Developer Studio
Developer Studio Workshop

Rotating Column Text Title
Dennis Van der Vieren, Qwest Communications

Do you have a WebFOCUS HTML report with ACROSS columns that is extremely wide due to the width of the column header text and/or the number of fields, even though the width of the actual data in the column is narrow? This technique can be used to rotate the column header text by 90 degrees to reduce overall report width to the minimum required to display the actual data in each column.

Let's say we have the following report from the CAR database:

TABLE FILE CAR
  SUM     SEATS
  BY      CAR 
  ACROSS  COUNTRY
END
Which produces the following output:

Now let's wrap the COUNTRY field with some HTML DIV code in a DEFINE FIELD that will cause the ACROSS text to be rotated 90 degrees. The new code looks like this:

DEFINE FILE CAR
     MYCOUNTRY/A70 = '<div STYLE="writing-mode: tb-rl;filter: flipv fliph;">' | 
                     COUNTRY | '</DIV>';
END

TABLE FILE CAR
SUM     SEATS
BY      CAR
ACROSS  MYCOUNTRY
END

Our new, more narrow output looks like this:

You can change the flow of the text to read from top to bottom by changing the flipv to fliph to produce the following output:

Note: This technique may only work in Internet Explorer and does not translate to PDF output.