Managing Page Breaks in an ASP Page

O

Orion Forever

I've been looking for an answer to this question for a few months
now. We migrated a report from an access report to the web. The
report has variable text fields that can vary quite a lot in length
(from 5 lines to 40-50 lines).

The page is intended to print, and where I'm struggling to replicated
the concept of "Keep together" from the access report. In this
report, there was multiple entities describing a specific customer. I
need to keep all the lines together.

Currently what I'm doing is trying to "approximate" how many automatic
carriage returns the variable text would have. When the script
figures out where the break should be, it adds a page break within an
HR tag (using HRs to break up the segments of the report). This is
fairly inexact, and causing problems with the print (occasionally a
report will go to another page because the algorithm doesn't come up
with right spot in the page break).

I guess the question comes down to this. Has anyone ever created the
ability to keep segments of pages guaranteed to print together within
ASP?
 
B

Bob Barrows

Orion said:
I guess the question comes down to this. Has anyone ever created the
ability to keep segments of pages guaranteed to print together within
ASP?

ASP is code that runs on the server and generates html to be sent to the
client. It knows nothing of printers or page breaks or any other
client-side construct. Your question is really about html and css, so
these groups will probably get you more relevant responses:

http://groups.google.com/groups/dir?sel=33584039
 
O

Orion Forever

ASP is code that runs on the server and generates html to be sent to the
client. It knows nothing of printers or page breaks or any other
client-side construct. Your question is really about html and css, so
these groups will probably get you more relevant responses:

Yeah, the only thing I'm doing in js is the actual page break.

The algorithm is entirely done in asp, but I guess I could try css as
an alternative.
 

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
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top