Forum Moderators: open

Message Too Old, No Replies

Printing Problem (page including dynamic texts)

         

Raymondwu

1:39 am on Nov 27, 2002 (gmt 0)

10+ Year Member



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?

Sinner_G

7:25 am on Nov 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it an option to put those fields of yours into a table? Then you could use the thead and tbody tags which (should) repeat the head on every page when printing. The tag isn't supported by NS until version 6 though.

Raymondwu

9:40 am on Nov 27, 2002 (gmt 0)

10+ Year Member



Oh really? I will have a try. Thank you very much!