|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question about Layers(DIV)
Hi:
I have a document(invoice, letter patent,...), that it will have a different number of details and concepts. These will be in the body of the document. These documents will have another sections. Depending of the amount of details, when the document is printed it will have more or less pages. In each page I print different sections (header, footer, ...). Iīm trying to print all the documents using one ASP page. I define different sections, fields,... for each document, and depending of the position, size, style,... that I define in the DB I print the sections. What I do until now is to print in ASP a layer with <div> for each detail line. Later in the client(JavaScript), I can know how many pages it will have the document using offSetHeight. Then I can print all the headers, footers,... that I need. But in the server I canīt know how many pages it will have a document because it depends of the number of details. The problem is that itīs very slow to draw all these layers in the client. I would need a function that in ASP(in the server) tells me what height it will have a certain layer(DIV) with these parameters(text, size of the text, width of the layer,...) Somebody knows how to know it in the server? Because in the client with JavaScript I know it using offsetHeight but I canīt do it in the client because itīs very very slow. Thank you, JMAN |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Question about Layers(DIV) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|