Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Compound Report - the 2nd report is covering the first report

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Compound Report - the 2nd report is covering the first report
 Login/Join
 
Gold member
posted
Hi,

I am running a compound report, it only has 2 reports. I set the "SET COMPOUND= 'OPEN NOBREAK'" on the first report. And I set the "SET COMPOUND = 'CLOSE'" on the second report. It is working perfectly on the HTML format, but it doesn't work on the PDF format.

Here is my stylesheet on the first report:

UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=0.5, $

TYPE = REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $

TYPE = HEADING , STYLE=BOLD, $
TYPE = HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$
TYPE = HEADING , LINE=2, SIZE=1, $
TYPE = HEADING , LINE=3, COLOR=RGB(2 99 108), $
TYPE = HEADING , LINE=4, SIZE=1, $
TYPE = HEADING , LINE=11, COLOR=RGB(2 99 108), BOTTOMGAP=1.03, $
TYPE = HEADING , LINE=13, SIZE=1, $
TYPE = HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $

TYPE = TITLE , STYLE=BOLD, $
TYPE = SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE = SUBTOTAL , STYLE=BOLD, $
TYPE = GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE

Here is the stylesheet on the 2nd report:

UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=0.5, $

TYPE = REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $
TYPE = HEADING , STYLE=BOLD, $
TYPE = HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$
TYPE = HEADING , LINE=2, SIZE=1, $
TYPE = HEADING , LINE=3, COLOR=RGB(2 99 108), $
TYPE = HEADING , LINE=4, SIZE=1, $
TYPE = HEADING , LINE=11, COLOR=RGB(2 99 108), BOTTOMGAP=1.03, $
TYPE = HEADING , LINE=13, SIZE=1, $
TYPE = HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $

TYPE = TITLE , STYLE=BOLD, $
TYPE = SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE = SUBTOTAL , STYLE=BOLD, $
TYPE = GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE

Do you see anything wrong?

Thanks
May


May

WebFOCUS 7.6.8 Servlet
- MRE/BID/Self Service/ReportCaster
- MS Windows Server 2003
- MS SQL Server 2005
- DataMigrator 7.6.9
 
Posts: 51 | Registered: December 15, 2006Report This Post
Expert
posted Hide Post
May,

What is the error you get when running the report for PDF output?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Expert
posted Hide Post
May,

Have you tried using OPEN on the first report instead of OPEN NOBREAK?

That would be the first change I would make in testing.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Gold member
posted Hide Post
Hi Francis,

My problem is the 2nd report is covering the first report.

Tony,

I had tried to use 'OPEN' only, but it will break my first and 2nd reports into 2 pages. I prefer both reports will show on one page.

May


May

WebFOCUS 7.6.8 Servlet
- MRE/BID/Self Service/ReportCaster
- MS Windows Server 2003
- MS SQL Server 2005
- DataMigrator 7.6.9
 
Posts: 51 | Registered: December 15, 2006Report This Post
Expert
posted Hide Post
May,

That is what I thought and hoped you might say - that you have tried it Smiler which is also why you've reached the conclusion that the style sheet is somehow causing your grief.

Try taking out the POSITION attribute in - TYPE = HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$ - initially from both style sheets and let us know what you get back.

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 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
May,

The problem is that you copied the same stylesheet for both pieces of the report - the POSITION tag in the second report HEADING style is causing the reports to overlap each other.

Try this code:

SET PAGE=NOLEAD
-RUN

SET COMPOUND= 'OPEN NOBREAK'
-RUN

TABLE FILE CAR
SUM
SALES
BY COUNTRY
HEADING
"WebFOCUS Report 1"

ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON, COLOR=BLUE,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=0.5, $

TYPE = REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $

TYPE = HEADING , STYLE=BOLD, $
TYPE = HEADING , LINE=1, SIZE=11, POSITION=(0.5 1.5),$
TYPE = HEADING , LINE=2, SIZE=1, $
TYPE = HEADING , LINE=3, COLOR=RGB(2 99 108), $
TYPE = HEADING , LINE=4, SIZE=1, $
TYPE = HEADING , LINE=11, COLOR=RGB(2 99 108), BOTTOMGAP=1.03, $
TYPE = HEADING , LINE=13, SIZE=1, $
TYPE = HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $

TYPE = TITLE , STYLE=BOLD, $
TYPE = SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE = SUBTOTAL , STYLE=BOLD, $
TYPE = GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE
END
-RUN

SET COMPOUND = 'CLOSE'
-RUN

TABLE FILE CAR
SUM
SALES
BY MODEL
HEADING
"WebFOCUS Report 2"

ON TABLE PCHOLD FORMAT PDF

ON TABLE SET STYLE *
UNITS=IN, PAGESIZE=LETTER, ORIENTATION=PORTRAIT, SQUEEZE=ON, COLOR=GREEN,
LEFTMARGIN=0.5, RIGHTMARGIN=0.5, TOPMARGIN=0.5, BOTTOMMARGIN=0.5, $

TYPE = REPORT , GRID=OFF, FONT=ARIAL, SIZE=9, TOPGAP=0.02, BOTTOMGAP=0.04, $

TYPE = HEADING , STYLE=BOLD, $
TYPE = HEADING , LINE=1, SIZE=11, $
TYPE = HEADING , LINE=2, SIZE=1, $
TYPE = HEADING , LINE=3, COLOR=RGB(2 99 108), $
TYPE = HEADING , LINE=4, SIZE=1, $
TYPE = HEADING , LINE=11, COLOR=RGB(2 99 108), BOTTOMGAP=1.03, $
TYPE = HEADING , LINE=13, SIZE=1, $
TYPE = HEADING , IMAGE=crmrep1.jpg, IMAGEALIGN=TOP, IMAGEBREAK=ON, $

TYPE = TITLE , STYLE=BOLD, $
TYPE = SUBHEAD , STYLE=BOLD, COLOR=RGB(2 99 108), $
TYPE = SUBTOTAL , STYLE=BOLD, $
TYPE = GRANDTOTAL, STYLE=BOLD, $
ENDSTYLE
END
-RUN

By the way, do you want the crmrep1.jpg image on both pieces of the compound PDF report?


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Francis and Tony,

Thanks for your suggestion. It is working now. Yes Francis, I need crmrep1.jpg shows up on the second report when the first report has no result in some cases.

Thanks


May

WebFOCUS 7.6.8 Servlet
- MRE/BID/Self Service/ReportCaster
- MS Windows Server 2003
- MS SQL Server 2005
- DataMigrator 7.6.9
 
Posts: 51 | Registered: December 15, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Compound Report - the 2nd report is covering the first report

Copyright © 1996-2020 Information Builders