Subject: Page Breaks in ASP
Posted By: askenkray Post Date: 4/4/2005 11:33:34 PM
Is there any way to use pageBreaks in ASP/HTML?????This is required more when the data increases the size of the page.

Ashwin S.Kenkare
Programmer
CMI
Reply By: omninewt Reply Date: 4/5/2005 4:07:16 PM
There are probably better ways of doing this, but you can force a page break after your html tags like div:

<DIV style="page-break-after: always;"></div>

Or if your page is specifically for printing you can have it converted to a word document by heading it with asp code:

response.buffer = true
response.ContentType = "application/vnd.ms-word"
response.AddHeader "content-disposition", "inline; filename=dynamic.doc"


Reply By: askenkray Reply Date: 4/12/2005 11:48:03 PM
I tried the second option.It does not work properly incase of Word .I gives some garbled o/p and a close button. ANy reason for that????

Ashwin S.Kenkare
Programmer
CMI
Reply By: Hal Levy Reply Date: 4/27/2005 7:24:10 PM
Are you looking to make the results span multiple pages (paging)-- Like a "Next 50" button?  or are you trying to format a long page?


Hal Levy
I am here to help you, not do it for you.
That is, unless you hire me. I am looking for work.
Reply By: cuzintone Reply Date: 6/8/2005 10:10:27 AM
Daniel Anderson wrote an excellent article on this topic. I actually modified his example and used it in a program I was developing for my job. The link is at http://www.4guysfromrolla.com/webtech/062899-1.shtml.

-TG

Reply By: askenkray Reply Date: 8/18/2005 5:54:26 AM
The link you hav mentioned on 4guysfromrolla is does not exists.
Is there any onther link?????

Ashwin S.Kenkare
Programmer
CMI
Reply By: joefawcett Reply Date: 8/18/2005 9:43:40 AM
quote:
Originally posted by askenkray

The link you hav mentioned on 4guysfromrolla is does not exists.

Ashwin S.Kenkare
Programmer
CMI


Blame the vagaries of the forum's parser. The link is:

http://www.4guysfromrolla.com/webtech/062899-1.shtml

--

Joe (Microsoft MVP - XML)
Reply By: rodney.rods Reply Date: 9/14/2006 2:03:08 AM
Add this in the head part
<STYLE TYPE="text/css">
     P.breakhere {page-break-before: always}
</STYLE>
and where ever u need a break add

<P CLASS="breakhere">


Go to topic 10621

Return to index page 175
Return to index page 174
Return to index page 173
Return to index page 172
Return to index page 171
Return to index page 170
Return to index page 169
Return to index page 168
Return to index page 167
Return to index page 166