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

HTML format font size w/<style> NOT font size = xx?

Status
Not open for further replies.

codejive

Programmer
Jul 15, 2002
3
US
My question is regarding the limitations Crystal may have when using HTML. I am currently using cr8.0

The example below 'code' works fine. My problem is that the font size=4 is too small while size=5 is too large. So is my idea to modify the SIZE with <style> or some other method even possible? I have searched and found no answers. So these are the two methods I have tried (result: no change to the display or errors).
- &quot;<style=&quot;font-size: 2.8px;&quot;>&quot;
- &quot;<Font font-size=4.5px>&quot;


Code:
&quot;<Font size=4 face=New Times Roman>&quot; + &quot;<center>&quot; +
'Superior Court of Maricopa County - ' + &quot;<B>&quot; + 'i' + &quot;</B>&quot; + 'ntegarated ' +
&quot;<B>&quot; + 'C' + &quot;</B>&quot; + 'ourt ' +
&quot;<B>&quot; + 'I' + &quot;</B>&quot; + 'nformation ' +
&quot;<B>&quot; + 'S' + &quot;</B>&quot; + 'ystem' +
&quot;</center>&quot; + &quot;</Font size=4 face=New Times Roman>&quot;

Thanks.
 
Why not try a half point size. e.g. "<font size = 4.5 face = Times New Roman>" This works from the Crystal format bar it might work in your formula.
 
Hit F1 to see the supported tags in CR 8.

In CR 10 we have:

The supported HTML tags are:

html
body
div (causes a paragraph break)
tr (causes only a paragraph break; does not preserve column structure of a table)
span
font
p (causes a paragraph break)
br (causes a paragraph break)
h1 (causes a paragraph break, makes the font bold & twice default size)
h2 (causes a paragraph break, makes the font bold & 1.5 times default size)
h3 (causes a paragraph break, makes the font bold & 9/8 default size)
h4 (causes a paragraph break, makes the font bold)
h5 (causes a paragraph break, makes the font bold & 5/6 default size)
h6 (causes a paragraph break, makes the font bold & 5/8 default size)
center
big (increases font size by 2 points)
small (decreases font size by 2 points if it's 8 points or larger)
b
i
s
strike
u
The supported attributes are:

align
face
size
color
style
font-family
font-size
font-style
font-weight

-k
 
I tried the half point size and it appears to work as expected. You may want to align to bottom though to prevent point size changes from changing the look of the report.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top