House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfdocumentitem

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stephens, Larry V
07/18/2012 10:47 AM

The code I have is producing a pdf file. The problem is formatting. <cfdocumentitem type="footer">   <p align="right">#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#</p> </cfdocumentitem> This works although the font size doesn't seem to match anything else on the page. <cfdocumentitem type="header">       <div align="center"><font size="18">Indiana University Insurance Portfolio</div>       <div align="center"><font size="12">#DateFormat(Now(),"mm/dd/yyyy")#</font></div>       <table border="0" cellpadding="2" cellspacing="1" width="100%">         <tr>           <td width="3%"><font size="14">FY</font></td>           <td width="23%"><font size="14">Coverage</font></td><!--- Coverage --->           <td width="9%"><font size="14">Coverage Amount</font></td>           <td width="6%"><font size="14">Insurance</font></td>           <td width="4%"><font size="14">Fund</font></td>           <td width="6%"><font size="14">Premium</font></td>           <td><font size="14">Company</font></td>           <td><font size="14">Agent</font></td>           <td><font size="14">Paid</font></td>         </tr>         <tr>           <td><font size="14"> </font></td>           <td><font size="14"> </font></td><!--- CoverageDescrip --->           <td><font size="14"><i>Group</i></font></td>           <td><font size="14">Deductible</font></td>           <td><font size="14">Deductible</font></td>           <td><font size="14"><i>Policy Num</i></font></td>           <td><font size="14"><i>Dates</i></font></td>         </tr>       </table>     </cfdocumentitem> This is a mess. No matter how I try to set the font size (as shown or +X, pointsize, by class) it somes out from pinhead size to just barely readable. All the width statements are trying to match up the header elements with the body elements. In the body, the only formatting that seems to work is <font size="-2"> which makes it approximately the right size. Classes don't seem to work. Using CF8. Is it just me or is this resource flawed?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Dave Watts
07/18/2012 11:02 AM

> In the body, the only formatting that seems to work is <font size="-2"> which makes it approximately the right > size. Classes don't seem to work. > > Using CF8. Is it just me or is this resource flawed? Classes do work, but your styles must be embedded within the CFDOCUMENT tag (not referenced using a link) and they must also be embedded within every CFDOCUMENTITEM where you want them to apply. All that said, formatting can still be difficult with CFDOCUMENT. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Stephens, Larry V
07/18/2012 11:03 AM

Thanks. Alternative suggestions? > In the body, the only formatting that seems to work is <font > size="-2"> which makes it approximately the right size. Classes don't seem to work. > > Using CF8. Is it just me or is this resource flawed? Classes do work, but your styles must be embedded within the CFDOCUMENT tag (not referenced using a link) and they must also be embedded within every CFDOCUMENTITEM where you want them to apply. All that said, formatting can still be difficult with CFDOCUMENT. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite.


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference