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     Spot Marker not working in PDF

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Spot Marker not working in PDF
 Login/Join
 
Master
posted
I'm trying to use spot marker in my pdf report but it not working.
In the given example, the heading has to split has 3 columns and each column has to be in different color(green, red, gray). But it is giving everything has green color.

Note: This code works fine in HTML.


Eg:
TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,OBJECT=TEXT,ITEM=1,FONT=ARIAL,BACKCOLOR=GREEN,$
TYPE=HEADING,OBJECT=TEXT,ITEM=2,SIZE=14,BACKCOLOR=RED,$
TYPE=HEADING,OBJECT=TEXT,ITEM=3,STYLE=BOLD,BACKCOLOR=GRAY,$
ENDSTYLE
END
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
That will only work in HTML. Try using
<+n or <-n to align in PDF.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Master
posted Hide Post
<+n or <-n used as to find the starting position of the character but I want to make some text as bold and some text to give backcolor.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Virtuoso
posted Hide Post
That particular method you were using works in Subhead...if you somehow could use that.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Try adding line=1 to each of the lines. Like this:

TYPE=HEADING,OBJECT=TEXT,LINE=1,ITEM=1,FONT=ARIAL,BACKCOLOR=GREEN,$

If this works, it will only affect the page heading, of course - not the data.
 
Posts: 135 | Location: Portland, OR | Registered: March 23, 2005Report This Post
Expert
posted Hide Post
BACKCOLOR for a segment of a HEADING line will not work in PDF.

You may have noticed that FONT, COLOR and some other styling does work, BACKCOLOR does not.

Maybe the next release...
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Master
posted Hide Post
No, it's not working for anything. I dont need Backcolor in my report, just gave that to identify the column difference as an example.
 
Posts: 780 | Location: Florida | Registered: January 09, 2005Report This Post
Expert
posted Hide Post
This illustrates that some styling does work:

TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=1,FONT=ARIAL,SIZE=20,COLOR=GREEN,$
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=2,FONT=TIMES,SIZE=15,COLOR=RED,$
TYPE=HEADING,LINE=1,OBJECT=TEXT,ITEM=3,SIZE=30,STYLE=BOLD,COLOR=BLUE,$
ENDSTYLE
END
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
<delvegas>
posted
Try this code, and it will definetly work..

TABLE FILE GGSALES
SUM UNITS DOLLARS
BY CATEGORY
BY PRODUCT
HEADING
"FIRST QUARTER <+0>SALES <+0>REPORT"
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
TYPE=HEADING,LINE=1,OBJECT=TEXT,FONT=ARIAL,SIZE=12,COLOR=GREEN,$
TYPE=DATA,COLUMN=1,FONT=ARIAL,SIZE=10,COLOR=GREEN,$
TYPE=DATA,COLUMN=2,FONT=TIMES,SIZE=10,COLOR=RED,$
TYPE=DATA,COLUMN=3,STYLE=BOLD,SIZE=10,COLOR=BLUE,$
TYPE=DATA,COLUMN=4,STYLE=BOLD,SIZE=10,COLOR=GREY,$
ENDSTYLE
END

lvegas
 
Report 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     Spot Marker not working in PDF

Copyright © 1996-2020 Information Builders