Focal Point
Subhead gives blank

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

August 02, 2005, 03:08 PM
Kamesh
Subhead gives blank
If I run the following code, the output gives me a blank line next to the subhead text. I dont need the blank line. Is there any way I can avoid that. If I make Squeeze=ON then I wont get that line but that will affect other part of my program. So, I dont want to set SQUEEZE=ON.

TABLE FILE CAR
PRINT CAR AS ''
MODEL AS ''
BODYTYPE AS ''
DEALER_COST AS ''
WHERE COUNTRY EQ 'ENGLAND' OR 'JAPAN' OR 'ITALY'
BY COUNTRY NOPRINT
ON COUNTRY SUBHEAD
"LIST OF CARS BASED ON COUNTRY"
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET STYLE *
UNITS=IN, PAGESIZE='Letter', SQUEEZE=OFF,ORIENTATION=PORTRAIT, GRID=OFF,$
TYPE=REPORT, GRID=OFF, STYLE=NORMAL, FONT='ARIAL', SIZE=8,
BACKCOLOR=NONE,$
TYPE=DATA,FONT='ARIAL',SIZE=8,COLOR=BLACK,STYLE=NORMAL,$
TYPE=SUBHEAD,FONT='ARIAL',SIZE=8,COLOR=BLACK,STYLE=NORMAL,$
TYPE=SUBHEAD,LINE=1,BACKCOLOR=GRAY,$
ENDSTYLE
END
-EXIT
August 02, 2005, 03:16 PM
reFOCUSing
I added the following line to the code and the blank line went away. Does this work for you?

ON TABLE SET HTMLCSS ON
August 02, 2005, 03:39 PM
Kamesh
Yes it works but it breaks my other formatting.
August 02, 2005, 03:48 PM
mgrackin
Remove the SQUEEZE=OFF from your stylesheet to fix the problem. I would report this to IBI. I tried this with WebFOCUS 7.1 and the problem reproduces in this version.
August 02, 2005, 03:59 PM
Kamesh
If we remove the SQUEEZE=OFF, by default Webfocus takes SQUEEZE=ON. That spoils my other formatting. Mine is the complex compound report.
August 02, 2005, 04:29 PM
reFOCUSing
Is your output actually HTML or is PDF? The reason I ask this is because you said your doing a compound report.
August 02, 2005, 05:24 PM
Kamesh
both
August 02, 2005, 05:36 PM
reFOCUSing
Let me guess you are trying to use the same style sheet for both reports.
August 02, 2005, 06:16 PM
Kamesh
No, I'm using different stylesheet for both format.
August 19, 2005, 03:21 PM
Kamesh
If I specify SQUEEZE=ON, by default it aligns the data with the highest length of the data based on browser settings. In my subhead, I'm giving some hardspaces to align the value with the data. But when the data starting position varies, it's not matching with subhead value. Is there anyway we can change the starting position of subhead value based on data.
August 19, 2005, 05:44 PM
Kamesh
FYI,

found the solution. Headalign=Body with Colspan does the magic.