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     BACKCOLOR OF HEADING IN PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
BACKCOLOR OF HEADING IN PDF
 Login/Join
 
Silver Member
posted
Hi,
how to control the backcolor of the report heading in a pdf report.i have a small heading and 10 columns and the backcolor of the heading is spanning till upto 10 columns and i dont want that. is there a way to control this from spanning till the last column.
thanks
 
Posts: 37 | Registered: December 28, 2005Report This Post
Expert
posted Hide Post
This may do what you require, depeding on the complexity of the report heading:

TABLE FILE CAR
PRINT *
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
HEADING
"THIS IS A TEST"
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLESHEET *
TYPE=REPORT, GRID=OFF, FONT='ARIAL', SIZE=8, $
TYPE=HEADING, HEADALIGN=BODY, BACKCOLOR=RED, $
ENDSTYLE
END


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
Silver Member
posted Hide Post
Hi Francis,
i am looking to control the backcolor of the heading in a pdf report and i tried ur code in pdf output and it did not work for me.
 
Posts: 37 | Registered: December 28, 2005Report This Post
Virtuoso
posted Hide Post
Chelsea,

I hate to say it but I have seen this problem and have not found a way to color the background of only a portion ("CELL") of a HEADING line when the output is PDF. I have only seen it color the background of the whole line as you are experiencing.

Sorry.

Mickey


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Member
posted Hide Post
Mickey's right, this is a pain. However, you can do it with 2 passes using compound reports. It's not the most elegant way to do it, but it works!

SET PAGE=NOLEAD

TABLE FILE CAR
HEADING
"This is a Heading Line"
PRINT COUNTRY NOPRINT
IF RECORDLIMIT IS 1
ON TABLE PCHOLD FORMAT PDF OPEN NOBREAK
ON TABLE SET STYLE *
TYPE=REPORT,RIGHTMARGIN=6,$
TYPE=HEADING,LINE=1,BACKCOLOR=GRAY,$
END

TABLE FILE CAR
PRINT COUNTRY CAR MODEL
ON TABLE PCHOLD FORMAT PDF CLOSE
END

Lot's of ways to play around with the RIGHTMARGIN (making it more dynamic, etc.), as well as specifying the OPEN/CLOSE feature, but this works.

Craig Kozlow


PROD:WebFOCUS 7.6.11 on UNIX accessing FOCUS, Oracle, SQLServer
TEST: WebFOCUS 7.7.1 on UNIX accessing FOCUS, Oracle, SQLServer
 
Posts: 28 | Location: USA | Registered: March 24, 2005Report 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     BACKCOLOR OF HEADING IN PDF

Copyright © 1996-2020 Information Builders