Wrox Programmer Forums
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2005, 11:33 PM
Authorized User
 
Join Date: Jan 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to askenkray
Default Page Breaks in ASP

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
__________________
Ashwin S.Kenkare
Programmer
CMI
 
Old April 5th, 2005, 04:07 PM
Registered User
 
Join Date: Apr 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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"


 
Old April 12th, 2005, 11:48 PM
Authorized User
 
Join Date: Jan 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to askenkray
Default

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
 
Old April 27th, 2005, 07:24 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

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.
 
Old June 8th, 2005, 10:10 AM
Authorized User
 
Join Date: Oct 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to cuzintone Send a message via Yahoo to cuzintone
Default

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

 
Old August 18th, 2005, 05:54 AM
Authorized User
 
Join Date: Jan 2005
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to askenkray
Default

The link you hav mentioned on 4guysfromrolla is does not exists.
Is there any onther link?????

Ashwin S.Kenkare
Programmer
CMI
 
Old August 18th, 2005, 09:43 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Quote:
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)
 
Old September 14th, 2006, 02:03 AM
Registered User
 
Join Date: Sep 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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">






Similar Threads
Thread Thread Starter Forum Replies Last Post
Page breaks in a table aspless Classic ASP Basics 4 January 18th, 2008 01:39 PM
Page Breaks bcogney XML 10 March 29th, 2007 04:01 PM
Page breaks rupen HTML Code Clinic 1 October 4th, 2006 04:08 PM
Tables and Page Breaks MER78 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 October 12th, 2004 12:11 PM
forcing page breaks emprise Crystal Reports 0 July 26th, 2004 03:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.