Discussion:
cfdocument repeat header issue
(too old to reply)
ironyx
2008-01-16 16:43:05 UTC
Permalink
Using cfdocument, we are trying to have a dynamic title bar repeat on each page
with rows of data underneath.

It is currently a row in a table which displays once at the very top of the
first document. When put in the header however, the column shrinks to the size
of the title, not the size of the largest record in the info below because the
two tables are now separate.

We tried padding the title with   based on the len(of the largest
record). This sort of worked but seems we can't find a consistent font that
will pad it evenly. Does anyone know of either a font that would work despite
case etc..or have another (maybe more clever) idea of how to get the title to
size for the largest record in each column?

As always, thank you for your help!
Va.
GArlington
2008-01-17 10:44:01 UTC
Permalink
Post by ironyx
Using cfdocument, we are trying to have a dynamic title bar repeat on each page
with rows of data underneath.
It is currently a row in a table which displays once at the very top of the
first document. When put in the header however, the column shrinks to the size
of the title, not the size of the largest record in the info below because the
two tables are now separate.
We tried padding the title with   based on the len(of the largest
record). This sort of worked but seems we can't find a consistent font that
will pad it evenly. Does anyone know of either a font that would work despite
case etc..or have another (maybe more clever) idea of how to get the title to
size for the largest record in each column?
As always, thank you for your help!
Va.
You can try to calculate and use the calculated column width...
BSW2
2008-01-25 19:18:14 UTC
Permalink
I have been through this sort of thing before. I know this will sound dumb.

Just make the columns wide enough to display the widest data.
OR
Let the customer decide which columns can be to small to display some very
wide fields.
OR
Use a CFFORM format="flash".... CFGRID control
BrianO
2009-03-04 01:21:22 UTC
Permalink
I just ran into this issue and I think this is the edge of this capability and
time to use the ReportBuilder again. I've used the ReportBuilder successfully
many times, I've just learned to use cfdocument when I can. I thought about
using the "len(of the largest record). " approach, but it seems like such a
kluge. Anyone find a good solution? Would be nice if there was an elegant way
to do this with cfdocument.

Loading...