By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,818 Members | 2,089 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,818 IT Pros & Developers. It's quick & easy.

position question

P: n/a
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!

Oct 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ben wrote:
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?
--
Rob
Oct 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.