position question

B

Ben

Hi,
I am trying to generate a report using a table which get's its data out
of a mysql database. This report needs to be printed. Each page of the
report (when printed) needs to have a running total at the bottom. The
problem I have is this:

It is impossible to determine how many rows will fit on each page, as
every row is a different height (depending on the length of the data in
the database) and so I don't know where to put my sub-totals and page
breaks. Is there anyway I can determine the number of pixels between
two points on a page? Or determine the height of a row in lines? I
don't know if javascript is the best way to do this, but I can't think
of any other way. any help would be greatly appreciated.

Thanks!
 
R

RobG

Ben said:
Hi,
I am trying to generate a report using a table which get's its data out
of a mysql database. This report needs to be printed. Each page of the
report (when printed) needs to have a running total at the bottom. The
problem I have is this:

It is impossible to determine how many rows will fit on each page, as
every row is a different height (depending on the length of the data in
the database) and so I don't know where to put my sub-totals and page
breaks. Is there anyway I can determine the number of pixels between
two points on a page? Or determine the height of a row in lines? I
don't know if javascript is the best way to do this, but I can't think
of any other way. any help would be greatly appreciated.

Not a solution, but some CSS advice is here:

<URL:http://www.blooberry.com/indexdot/css/propindex/print.htm>

It's probably /possible/ to create a scripted solution - most likely a
munge of script and CSS, but getting it to work across multiple browsers
may be more trouble than its worth.

How badly do you want it? How cross-browser does it need to be? Do you
have a link to a sample page with sample data in it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top