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.
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.
That is what I thought and hoped you might say - that you have tried it 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, 2004
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
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