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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a kind of "stylesheet" in the report 1

Status
Not open for further replies.

tektipdjango

IS-IT--Management
Jan 28, 2004
188
CR9:

You have a lot of formatting ways in CR via the format formulas, but if you want to change afterwards your "Bold" to "Italic" (for instance) you have to go through all the places in the report.
One way is to make a formula and put it (hidden) in the report header to initialize variables :
numbervar titleFontStyle:=crBold;
then in the titles you put a FontStyle formula like:
numbervar titleFontStyle;
titleFontStyle;

That's all.
If you want to change all your titles from Bold to Italic you have just to modify your init formula!

You may have varibles for color ...
Also different varibles for header titles, page titles...
 
I had to use "whileprintingrecords" in the initialization formula for this to work.

Also, in 8.0 at least, there are no formula options for font for text objects, so if you wanted to use this method for page header column labels, you would have to create formulas for them, instead of using the automatic column labels, which are text objects. Then you could select all formulas at once and format them simultaneously with a formula.

But I hadn't thought of this before, and I think it is a clever, useful idea, and so a * for you.

-LB
 
Yes Ibass you're right, I made it in a formula not on a text object but you pointed the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top