As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
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
Posts: 23 | Location: CA | Registered: April 07, 2011
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
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
Posts: 23 | Location: CA | Registered: April 07, 2011