Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style Sheets

Status
Not open for further replies.

aavvssss

Programmer
Joined
Feb 18, 2003
Messages
6
Location
US
Has anyone setup "Style Sheets" ? Where do you put them to be shared by everyone. In setting one up I've found that it has to reside in the same domain as the report that is including it. I'd rather not have to maintain a copy in each domain.
 
You can make a stylesheet by writing code in a member with extension ".STY". This component has to reside in the Focexec-directory or any directory specified in the path of the WebFocus server.

In your focexec you can use the statement
Code:
ON TABLE SET STYLE ststyle
where ststyle is the name of your stylesheetmember.
example of a stylesheet
Code:
TYPE=REPORT, ORIENTATION=PORTRAIT, FONT=ARIAL, SIZE=10, GRID=OFF, SQUEEZE=ON, $
TYPE=HEADING, BACKCOLOR=BLUE, $
TYPE=HEADING, LINE=1, BACKCOLOR=BLACK, 
 COLOR=WHITE, FONT=TIMES, STYLE=+ITALIC, SIZE=14, $
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=1, COLOR=RED, 
 SIZE=14, STYLE=BOLD, FONT=ARIAL, $
TYPE=HEADING, LINE=11, BACKCOLOR=WHITE, $
TYPE=HEADING, LINE=12, BACKCOLOR=WHITE, $
TYPE=TITLE, BACKCOLOR=YELLOW, 
 STYLE=BOLD, FONT=ARIAL, $ 
TYPE=ACROSSTITLE, BACKCOLOR=CYAN, 
 STYLE=BOLD, FONT=ARIAL, $

Frank van de Kant
 
Thanks for the help. Any chance you've created a STYLESHEET with a parameter ?
 
You can use a ampersand-parameter in your stylesheet. It will be interpreted before Focus writes it to the focstack. Frank van de Kant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top