Focal Point
PDF and CSS

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2071093312

February 15, 2007, 05:09 PM
Jud
PDF and CSS
I was wondering if webfocus7 supports pdfs with CSS. If not, can someone link me to a website that has a whole list of build in styles with pdf support
February 15, 2007, 05:38 PM
Tony A
Jud,

CSS (Cascading Style Sheets) are applicable to HTML and not PDF.

For styling PDF Docs I would recommend Mickey Grackin's excellent articles on the Focus on Developers link from the IB Developer Center (see link in top left of this page)

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 
February 15, 2007, 05:53 PM
Jud
thanks, but i need to change the positions of some of the columns here is some of my code
/----
CSS
.minor
{
position:relative;
left:-100px;
}
//----
style part of web focus
TYPE=DATA, COLUMN=MINORDESC, CLASS=MINOR,WHEN=RECORDTYP EQ 'B',
$



as u can see, it shifts the td over -100 pixels

This message has been edited. Last edited by: Jud,
February 15, 2007, 06:02 PM
Tony A
Jud,

If your output is PDF then CSS will not help you!

If your output is not PDF then tell us what it is (you refered to PDF above) otherwise check out Mickey's documents and you will find the info you need.

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 
February 16, 2007, 05:54 AM
Alan B
As Tony said, PDF and CSS just cannot work together.

However, the Focus stylesheet can be used to great effect to style a PDF document, and Mickeys articles help. There is though one (at least) item in the Focus stylesheet that can be used by PDF but not HTML (to my knowledge), that may give you what you need.

In your style declaration:
.
.
UNITS=PTS
.
.

TYPE=REPORT, COLUMN=Nn, POSITION=nn,$
.
.



This allows you to position all columns absolutely, PTS is the smallest unit size, giving greater ease of control.


Alan.
WF 7.705/8.007
February 21, 2007, 02:00 PM
RickW
FWIW, I ordered the Keysheet book
DN #
9400250.1106

and it really is a great quick reference to the stylesheet stuff - as well as all the other syntax related stuff. Well worth it at $25, IMHO.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
February 22, 2007, 08:14 AM
<DocServices>
Greetings,

Here's a link to some more information on both the WebFOCUS Keysheet Quick Reference Guide and the (Almost) 1001 Ways to Work With Dates for WebFOCUS guide, now available from Information Builders: http://documentation.informationbuilders.com/keysheet.asp

You can also read this Focal Point post that references both guides: view post

Hope this helps.

Regards,
Jenn