CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 How to make labels bigger (larger font)

Print topic Send  topic

Author Message
Chris__T


Posts: 339
Posted: 11/17/2009, 9:42 AM

I've got labels in a form letter style and when I increase the font size of the regular (non-label) text, those increase, but label text size doesn't increase. When I print this out, the regular sentences are for example size 14, then you come upon a label, and it's still size 8.

How do I change the label size?
View profile  Send private message
andrewi

Posts: 162
Posted: 11/18/2009, 11:16 AM

It sounds like there are some elements surrounding the labels that have css classes or in-line styles in them.

Take a look at the HTML. If you are writing a letter template, it ought to look like this (with the label placeholders in braces):

  
Congratulations {ClientFirstName}, you have been awarded a prize in the Readers' Digest  
Winter Draw.  Yes, fortune has truly smiled on {AddressFirstLine} today...  

If there are any HTML elements (<DIV>, <SPAN>, <FONT> etc) around the labels, strip them all out. Once you've done that, the label text must appear in the same format as the surrounding text (unless the values you're getting from the database have HTML elements in them).
View profile  Send private message
Chris__T


Posts: 339
Posted: 11/25/2009, 2:36 PM

well, I made this "form letter" with record builder. So there is text outside the form, then there is text and fields within the form, and more text outside the form

And the form style is basic.

But looking at the html, there are no font tags around the fields. The tags are just around the regular text.
View profile  Send private message
andrewi

Posts: 162
Posted: 11/25/2009, 3:31 PM

Codecharge styles can be difficult to override at times, but if you need a single uniform style & size of text that should be relatively straightforward. Can you paste a good sample of the HTML including some of the non-changing labels?
View profile  Send private message
Chris__T


Posts: 339
Posted: 11/30/2009, 8:16 AM

<body>  
<p><img id="Image1" height="250" alt=" " src="../images/letterhead_template.jpg" width="1100" name="Image1"></p>  
<p> </p>  
<p>  
<p align="center"><font size="7">VIOLATION NOTICE</font></p>  
<p><font size="4">CERTIFIED MAIL</font><br>  
<br>  
<!-- BEGIN Record permit1 -->  
<form id="permit1" name="{HTMLFormName}" action="{Action}" method="post">  
  <table cellspacing="0" cellpadding="0" border="0">  
    <tr>  
      <td valign="top">  
        <table cellspacing="0" cellpadding="0">  
          <!-- BEGIN Error -->  
          <tr>  
            <td>{Error}</td>  
          </tr>  
          <!-- END Error -->  
          <tr>  
            <td><font size="3">Violation Address: </font>{Job_Site}</td>  
          </tr>  
   
          <tr>  
            <td><font size="3">Name (Defendant):</font>{Contact_Name}<font size="3"> </font></td>  
          </tr>  
   
          <tr>  
            <td>  
              <p><font size="3">Under the penalty of perjury, I </font>{Inspector}<font size="3"> state that on </font>{Violation_Date}<font size="3">, the defendant did in the CIty of Creve Coeur, State of Missouri, at/near </font>{Job_Site2}<font size="3"> commit the following violation(s):<br>  
              <strong>Ordinance No. 1903, Section 26-70 Nonconformities, punishable under Ordinance No. 1232, Section 1-10 of the Revised Ordinances of the City of Creve Coeur, Missouri.</strong></font></p>  
            </td>  
          </tr>  
   
          <tr>  
            <td> </td>  
          </tr>  
   
          <tr>  
            <td><font size="3">    
              <table width="100%" border="0">  
                <tr>  
                  <td><input id="permit1Illegal_Parking_Comm" type="checkbox" value="1" name="{Illegal_Parking_Comm_Name}" {Illegal_Parking_Comm}> Illegal Parking of Commercial Vehicle</td>   
                  <td><input id="permit1Temp_Structures" type="checkbox" value="1" name="{Temp_Structures_Name}" {Temp_Structures}> Temporary Structure</td>  
                </tr>  
   
                <tr>  
                  <td><input id="permit1Illegal_Parking_Rec" type="checkbox" value="1" name="{Illegal_Parking_Rec_Name}" {Illegal_Parking_Rec}> Illegal Parking of Recreational Equipment</td>   
                  <td><input id="permit1POD" type="checkbox" value="1" name="{POD_Name}" {POD}> PODs</td>  
                </tr>  
   
                <tr>  
                  <td><input id="permit1Illegal_Home_Occ" type="checkbox" value="1" name="{Illegal_Home_Occ_Name}" {Illegal_Home_Occ}> Illegal Home Occupation</td>   
                  <td><input id="permit1CheckBox1" type="checkbox" value="1" name="{CheckBox1_Name}" {CheckBox1}> Illegal Building Occupation</td>  
                </tr>  
   
                <tr>  
                  <td><input id="permit1Inoper_Vehicle" type="checkbox" value="1" name="{Inoper_Vehicle_Name}" {Inoper_Vehicle}> Inoperable/Unlicensed Vehicle Parked</td>   
                  <td><input id="permit1Exterior_Light" type="checkbox" value="1" name="{Exterior_Light_Name}" {Exterior_Light}> Exterior Lighting Issues</td>  
                </tr>  
   
                <tr>  
                  <td><input id="permit1Other" type="checkbox" value="1" name="{Other_Name}" {Other}> Other</td>   
                  <td> </td>  
                </tr>  
              </table>  
              </font></td>  
          </tr>  
   
          <tr>  
            <td><font size="3">Additional Information: </font>{Comments}</td>  
          </tr>  
   
          <tr>  
            <td align="right"></td>  
          </tr>  
        </table>  
      </td>  
    </tr>  
  </table>  
</form>  
<!-- END Record permit1 --><br>  
<!-- BEGIN Record permit -->  
<form id="permit" name="{HTMLFormName}" action="{Action}" method="post">  
  <table cellspacing="0" cellpadding="0" border="0">  
    <tr>  
      <td valign="top">  
        <table cellspacing="0" cellpadding="0">  
          <!-- BEGIN Error -->  
          <tr>  
            <td>{Error}</td>  
          </tr>  
          <!-- END Error -->  
          <tr>  
            <td><font size="3">I, </font>{Inspector}<font size="3"> served a copy of this citation upon the defendant by: Certified Mail, on </font>{Date_Now}</td>  
          </tr>  
   
          <tr>  
            <td><font size="3"> </font></td>  
          </tr>  
   
          <tr>  
            <td>  
              <p><font size="3">1st Deadline - <strong>Violation correction needs to take place on or before </strong></font>{Deadline_One}<strong><font size="3"> at which time a follow up inspection will occur.</font></strong></p>  
   
              <p><strong><font size="3">Failure to correct the violation may result in more strenuous enforcement action, which can include the issuance of a municipal court summons.</font></strong></p>  
            </td>  
          </tr>  
   
          <tr>  
            <td align="right"></td>  
          </tr>  
        </table>  
      </td>  
    </tr>  
  </table>  
</form>  
<!-- END Record permit --><br>  
<br>  
<br>  
</p>  
</body>
View profile  Send private message
andrewi

Posts: 162
Posted: 11/30/2009, 1:38 PM

Looking at this line:
<td><font size="3">Violation Address: </font>{Job_Site}</td> 

{Job_Site} is outside the font definition - which is why the heading ("Violation Address") would format differently to the Job_Site text. You can either make sure all the text is within the FONT tag:
<td><font size="3">Violation Address: {Job_Site} </font></td> 
or strip out the FONT tags altogether:
<td>Violation Address: {Job_Site}</td> 
Either way , the size of both label and content will be the same (whether they're the right size is another issue. ) If you go to set the font style, it might be better to apply it in HTML view to ensure it covers all the content. Another way would be to set the font style on the <td> element (removing the FONT tags): that would get the whole td content consistent.

In the next line in the letter:
<td><font size="3">Name (Defendant):</font>{Contact_Name}<font size="3"> </font></td> 
there are two font definitions, but the second font definition misses the {Contact_Name} label altogether - again, this would lead the Contact_Name text to have a different size to the rest of the text.
Change to
<td><font size="3">Name (Defendant): {Contact_Name} </font></td> 

Applying in line font styles using CodeCharge is awkward. You've got your work cut out getting the style right for every line. I'd be tempted to remove all the in line FONT tags and use the CodeCharge style builder to set the font for all table cells. If you created a style called LetterStyle (with plain background, no table borders, fonts the size you want, etc), you could use this for all form letters, and you'd get the style you want in one click.
View profile  Send private message
Chris__T


Posts: 339
Posted: 11/30/2009, 1:42 PM

Ah, I see. I wasn't paying attention when looking at the html...too long of a thanksgiving break :) Thanks for the heads up. I'll take a look and let you know how it worked out. Thanks!
View profile  Send private message
Chris__T


Posts: 339
Posted: 12/04/2009, 11:12 AM

It worked out great. Thanks again :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.