Focal Point
[CLOSED] Margin space between sub-reports

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

May 05, 2011, 02:21 PM
TCL
[CLOSED] Margin space between sub-reports
Is there a way to supress the margin space (Top/Bottom) between each report within the COMPOUND report?

It seems webfocus had inserted some lines between each sub-report within the compound report. Each of the sub-report is coded as below:

  
ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF NOBREAK
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
UNITS=IN,
LEFTMARGIN=.25,
RIGHTMARGIN=.25,
TOPMARGIN=0.0,
BOTTOMMARGIN=0.0,
ORIENTATION=LANDSCAPE,
PAGESIZE='LETTER',
SQUEEZE=ON,
$

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


WebFOCUS 764, Oracle to produce report
May 05, 2011, 03:27 PM
Francis Mariani
There must be something other than the styling you've provided that is causing the problem.

This example shows no space between each "sub report", but I'm running this on a v768 server (no access to a v5 server).


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
May 05, 2011, 05:41 PM
TCL
Francis, can you be specific on what else I should look into that affects the spacing between reports.


WebFOCUS 764, Oracle to produce report
May 06, 2011, 11:58 AM
Francis Mariani
TCL, I'm sorry I forgot to include the sample code. Try running this code - you'll see that there's no space between the sub-reports. Start adding your code to this sample until the spacing problem shows up, then post your code and perhaps we can help. My code was tested on v7.6.8 and v7.7.02 so the spacing problem might be a version issue (try running this code as-is on your server - if you see space between the sub reports it's definitely a problem in earlier versions).

TABLE FILE CAR
SUM
SALES
BY COUNTRY

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF NOBREAK OPEN
ON TABLE SET STYLE *
UNITS=IN,ORIENTATION=LANDSCAPE,PAGESIZE='LETTER',SQUEEZE=ON,BACKCOLOR=RED,
LEFTMARGIN=.25,RIGHTMARGIN=.25,TOPMARGIN=0.0,BOTTOMMARGIN=0.0,$
END

TABLE FILE CAR
SUM
SEATS
BY COUNTRY

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF NOBREAK
ON TABLE SET STYLE *
UNITS=IN,ORIENTATION=LANDSCAPE,PAGESIZE='LETTER',SQUEEZE=ON,BACKCOLOR=YELLOW,
LEFTMARGIN=.25,RIGHTMARGIN=.25,TOPMARGIN=0.0,BOTTOMMARGIN=0.0,$
END

TABLE FILE CAR
SUM
WIDTH
BY COUNTRY

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF NOBREAK
ON TABLE SET STYLE *
UNITS=IN,ORIENTATION=LANDSCAPE,PAGESIZE='LETTER',SQUEEZE=ON,BACKCOLOR=BLUE,
LEFTMARGIN=.25,RIGHTMARGIN=.25,TOPMARGIN=0.0,BOTTOMMARGIN=0.0,$
END

TABLE FILE CAR
SUM
HEIGHT
BY COUNTRY

ON TABLE SET PAGE-NUM OFF
ON TABLE SET PAGE NOLEAD
ON TABLE PCHOLD FORMAT PDF NOBREAK CLOSE
ON TABLE SET STYLE *
UNITS=IN,ORIENTATION=LANDSCAPE,PAGESIZE='LETTER',SQUEEZE=ON,BACKCOLOR=GREEN,
LEFTMARGIN=.25,RIGHTMARGIN=.25,TOPMARGIN=0.0,BOTTOMMARGIN=0.0,$
END

This message has been edited. Last edited by: Francis Mariani,


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
May 06, 2011, 12:17 PM
Francis Mariani



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
May 06, 2011, 01:27 PM
TCL
Francis, your code run fine as long as each sub-reports are small to fit on same page. The problem I'm solving is not to allow a sub-report to split in the middle, somewhat similar to the NOSPLIT behavior to control the sortgroups. As long as I'm NOT doing a page-break on my own, there is no gap between each section. Since I need to force the group to print on same page, I purposely force a page-break by printing a dummy section (sub-report) without NOBREAK, the gap come back after that. Here is the sequence my sub-reports:

ON TABLE PCHOLD FORMAT PDF NOBREAK OPEN
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
-REPEAT CLOOP 2 TIMES;
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 3 LINES= 3
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 3 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 25 LINES= 25
-** No gap between the above sections ****

-** Purposely force a page break
-** Gaps return from this point onward
ON TABLE PCHOLD FORMAT PDF
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 35 LINES= 35

-** Purposely force a another page break
ON TABLE PCHOLD FORMAT PDF
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 5 LINES= 5
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 100 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 103 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK
0 NUMBER OF RECORDS IN TABLE= 103 LINES= 1
ON TABLE PCHOLD FORMAT PDF NOBREAK CLOSE
0 NUMBER OF RECORDS IN TABLE= 1 LINES= 1

I think the ON TABLE PCHOLD FORMAT PDF that I used purposely to force the following section of output to print on a new page change the behavor of the compound report.

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


WebFOCUS 764, Oracle to produce report