Focal Point
[CASE-OPENED] Field wraps in single report but not when included in compound report

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

August 26, 2012, 08:33 PM
TomC
[CASE-OPENED] Field wraps in single report but not when included in compound report
Until now I thought that a compound report simply rendered its component reports individually and appended the result to a larger document.

I am using WRAP=2 in a report's style section to wrap long text and it's working fine. However, when this report is included in a compound report the same text is not wrapped. Because the text doesn't wrap I get columns overlapping each other.

The relevant line in my compound report looks like this:
COMPONENT='report7', TEXT='report7', TOC-LEVEL=2, POSITION=(-0.001 +0.062), WRAP=ON, DIMENSION=(* *), OVERFLOW-POSITION=(0.520 1.704), RELATIVE-TO='report6', RELATIVE-POINT=BOTTOM-LEFT, POSITION-POINT=TOP-LEFT, METADATA='Z-INDEX: 100; POSITION: absolute; WIDTH: 7.479in; HEIGHT: 1.5in; TOP: 8.833in; LEFT: 0.52in', $


Single report:


When in compound report:

This message has been edited. Last edited by: Kerry,


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
August 27, 2012, 04:27 PM
Doug
Does each "report" have it's own style sheet? That is, do they share, or not share, a common style sheet? Are your column references numberic, like N# or C#, or are the using the absolute field names (that's my preference)?
August 27, 2012, 05:02 PM
TomC
Doug, thanks for your interest

All of the component reports share a common stylesheet, but the wrapping parameters are only relevant in one, so WRAP is included in this report's fex only.

ON TABLE SET STYLE *
     INCLUDE = CMN_rpt,
$
TYPE=DATA,
	COLUMN=POLICY,
	WRAP=2,
$
ENDSTYLE


As shown in my first post the compound report includes the individual report with DIMENSION(* *). I changed this to real numbers, thinking that perhaps the individual report didn't know how wide it was, and that's why WRAP wasn't being applied. This did make a difference - the first column's text was visible over a wider area - but it still didn't wrap and the fourth column still overlapped the first.


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
August 28, 2012, 02:43 PM
Tony A
Tom,

What do you have in CMN_rpt.sty?

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
August 28, 2012, 02:56 PM
TomC
Tony,

I've pasted the contents below. However I don't understand how this would be relevant - the problem report has the same styles applied when rendered individually and when in the compound report.

TYPE=report,
    font='VERDANA',
    size=10,
    squeeze=on,
    grid=off,
    COLOR='BLACK',
$
TYPE=TITLE,
     COLOR='WHITE',
     STYLE=-UNDERLINE+BOLD,
	 BACKCOLOR=RGB(97 117 178),
$
TYPE=DATA,
     SIZE=8,
     backcolor=(rgb(255 255 255) rgb(235 235 240)),
$
type=pagenum,
    style=italic,
    size=6,
    justify=right,
$
type=tabheading,
    style=bold+italic,
    size=14,
    justify=center,
$
TYPE=TABFOOTING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     STYLE=BOLD,
	 justify=center,
$
type=tabfooting,
    size=8,
    justify=center,
    border-top=heavy,
    border-top-color=rgb(97 117 178),
$
type=heading,
    style=bold,
    size=12,
    justify=center,
$
type=footing,
    size=8,
    justify=center,
$
type=acrosstitle,
    border-top=light,
    border-bottom=heavy,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
    size=9,
    style=-underline+bold,
$
type=acrossvalue,
    backcolor=rgb(218 225 232),
    style=bold,
$
type=subhead,
    size=10,
    style=bold,border-top=heavy,
    border-bottom=light,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
$
type=subfoot,
    size=10,
    style=bold,
    border-top=light,
    border-bottom=medium,
    border-top-color=rgb(52 55 58),
    border-bottom-color=rgb(52 55 58),
$
type=subtotal,
    backcolor=RGB(200 200 200),
    style=bold,
    border-top=light,
    border-top-color=rgb(66 70 73),
$
type=grandtotal,
    backcolor=rgb(66 70 73),
    color=rgb(255 255 255),
    style=bold,
    border-top=light,
    border-bottom=heavy,
    border-top-color=rgb(66 70 73),
    border-top-style=solid,
    border-bottom-style=double,
$



WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
August 28, 2012, 03:07 PM
Tony A
Tom,

Shot in the dark, just in case!

In the case of a compound report, the syntax that you have implies a portrait layout, I wanted to see if you had conflicting styling in your style sheet (you don't).

The width of your output is restricted to 7.479in but what is the width of your report outside of the compound? You might need to play with left gap, right gap and margin in your style sheet to get a decent layout.

I have had situations where I have had to play with numerous style values to gain a "clean" and flowing multi page document. Time consuming but worth the end result!

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
September 01, 2012, 02:08 PM
TomC
Tony, thanks for the suggestion, I'll give it a try shortly. I have also opened a support case with IBI so I'll report back here if something useful comes out of it.


WebFocus 7.7
Windows Server 2008 R2
HTML Reporting
September 27, 2019, 09:29 AM
sherrihe
Try using
TYPE=REPORT, COLUMN=fielname, WRAP=2,$
instead of TYPE=DATA


8201