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

Crystal Reports Changing Font Size Dynamically

Status
Not open for further replies.

PCSAARON

Programmer
Jul 9, 2002
131
US
Does anyone know if the font size of a field can be changed dynamically in CR 8.5? I was thinking of passing a parameter in for the font size and another for the specific font wanted. Has anyone done this already and can shed some light on things? Thanks in advance...

Aaron
 
Create parameters {?FontSize} and {?FontType}. Then right click on the field and choose format->field->font and in the x+2 area for "Size" enter:

{?FontSize}

...and in the x+2 area for "Font" enter:

{?FontType}

If you want to change the font and font size for multiple fields, you can select those you want affected all at once and then choose format objects and enter the parameters into the formula fields.

You should also make sure that the height and width of your fields are large enough to accommodate the larger font sizes. For string fields, you might want to set them to "Can Grow."

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top