IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    How to get grid lines on the PDF subhead
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
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.

http://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


WF Release : V7.1.7 ,
Platform : Linux ,
O/P formats : HTML/XLS/PDF
 
Posts: 24 | Location: Chennai,India | Registered: August 02, 2007Reply With QuoteEdit or Delete MessageReport 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


Old FOCUS coders never die, they just become functionally stable. (Tony A Wink)

Current Client: WebFOCUS 7.6.2 Win XP SP2/IIS 6/Tomcat 5.5 - MRE / BID MS SQL / Oracle - DevStudio 7.6.6 7.1.6
Local: WebFOCUS 7.6.6 7.1.6 on Win XP SP2/Apache/Tomcat 5.5 - Self Service
 
Posts: 2862 | Location: England U.K. (Freelance) | Registered: April 08, 2004Reply With QuoteEdit or Delete MessageReport This Post
Master
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
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    How to get grid lines on the PDF subhead

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.