I'm writing pages using ASP and Java Script and have a print function to print a report. But there are some dynamic text fields ('memo' type field in the MS ACCESS table) that I can't determine how many lines it will take on the page. So it difficult for me to predict the number of lines written and repeat the page header again. I'm trying to write a functions to calculate how many line breaks in the text and predict where will be a long line wrapped to create a new line. And also need to set the font to be in fixed length font type. It seems that I'm silly and waste too much time to write this function.
I'm wondering is there any more simple method to do it. Any suggestions?