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     How to get grid lines on the PDF subhead

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to get grid lines on the PDF subhead
 Login/Join
 
<Arun>
posted
Hi,
I need to generate a report which has values in its subhead. The report is working fine in HTML format. But in PDF format im unable to get the grid lines on the subhead. Is there anyway to get grid lines on the subhead? I tried to use stylesheets to achieve this. But that too dint help.
I referred the below links.

https://forums.informationbuilders.com/eve/forums/a/tpc/...051099571#8051099571

http://techsupport.informationbuilders.com/sps/81321120.html


This is the code which i used.

*-------------FEX file-----------------
SET CSSURL = approot\stylesheet.css
TABLE FILE CAR
PRINT
CAR AS ''
SEATS AS ''
BY COUNTRY AS ''
ON TABLE PCHOLD FORMAT PDF
ON COUNTRY SUBHEAD
"COUNTRY <+0> CAR <+0>SEATS"
ON TABLE NOTOTAL
ON TABLE SET STYLE *

TYPE=DATA,GRID=ON,$
TYPE=SUBHEAD,JUSTIFY=CENTER, SIZE=10,$
TYPE=SUBHEAD,ITEM=1,POSITION=P1,OBJECT=TEXT,class='locked_foot1',$
TYPE=SUBHEAD,ITEM=2,POSITION=P2,OBJECT=TEXT,class='locked_foot1',$
TYPE=SUBHEAD,ITEM=3,POSITION=P3,OBJECT=TEXT,class='locked_foot1',$

ENDSTYLE
END

*-----------stylesheet.css---------

td.locked_foot1, th.locked_foot1 {
background-color: WhiteSmoke;
font-weight: bold;
border-top: 1px solid black;
border-bottom: none;
border-right: 1px solid silver;
border-left: 1px solid silver;
text-align: right;
}

Please help me to find a solution for this issue.

Thanks,
Arun
 
Report This Post
Expert
posted Hide Post
Arun,

You are using CSS which is only applicable to HTML output not PDF (as signified by CLASS= in your stylesheet). Use BORDER-TOP, BORDER-BOTTOM to get your grids but refer to their usage within the documentation.

Also check out Mickey Grackin's two articles in the tips and techniques section from within the IB - Development Centre (link top left).

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
Virtuoso
posted Hide Post
Arun,

If you aim is to create borders around different items in the HEADING, I'm afraid that there is no option for that in WF for PDF. However, creating a border around the HEADING itself exists. For example:
  
TABLE FILE CAR
PRINT 
     SALES
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY MODEL
BY BODYTYPE
     
ON CAR PAGE-BREAK
HEADING
"Country: <COUNTRY"
"Car:<CAR"
FOOTING
""
ON TABLE SET PAGE-NUM OFF 
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
     UNITS=IN,
     SQUEEZE=ON,
     ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
     FONT='ARIAL',
     SIZE=9,
$
TYPE=TITLE,
     STYLE=BOLD,
$
TYPE=HEADING,
     BORDER-TOP=LIGHT,
     BORDER-BOTTOM=LIGHT,
     BORDER-LEFT=LIGHT,
     BORDER-RIGHT=LIGHT,
     SIZE=12,
     STYLE=BOLD,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.000,   
$
TYPE=HEADING,
     LINE=1,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=1,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=TEXT,
     ITEM=2,
     JUSTIFY=LEFT,
     WIDTH=1.000,
$
TYPE=HEADING,
     LINE=2,
     OBJECT=FIELD,
     ITEM=1,
     JUSTIFY=LEFT,
     WIDTH=1.000,
$
ENDSTYLE
END

Notice the use of WIDTH to align the HEADING items: use the alignment grid in the DS painter.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 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     How to get grid lines on the PDF subhead

Copyright © 1996-2020 Information Builders