473,508 Members | 2,356 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Page break in ASP pages

Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.
Apr 23 '07 #1
7 11091
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.
what's this? a page break for a printer?

Apr 23 '07 #2
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?

Akshay.

what's this? a page break for a printer?

Apr 23 '07 #3
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -

- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #4
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -

<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #5
What he gave you was the CSS code to force a page break while
printing. It would be up to you to insert the code into your own.

1. put the css code into your page or seperate style css file.
<style type="text/css">
.break { page-break-before: always; }
</style>

2. Write your code which will determine when a new page is needed, and
when it is, insert a <div class="break"></div>. If you are dealing
with tables, you may need to close the table at the bottom of the
page, before the <div class="break"></div>, then restart the table
after the div. I am not sure how it will handle a <tr class="break">
or something like that.

I would say this is the best answer for your question, which is
somewhat ambiguous.

On Apr 23, 11:14 am, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #6
What he gave you was the CSS code to force a page break while
printing. It would be up to you to insert the code into your own.

1. put the css code into your page or seperate style css file.
<style type="text/css">
.break { page-break-before: always; }
</style>

2. Write your code which will determine when a new page is needed, and
when it is, insert a <div class="break"></div>. If you are dealing
with tables, you may need to close the table at the bottom of the
page, before the <div class="break"></div>, then restart the table
after the div. I am not sure how it will handle a <tr class="break">
or something like that.

I would say this is the best answer for your question, which is
somewhat ambiguous.

On Apr 23, 11:14 am, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??

If there is a table, how will it know to show one row / column on one page
and if its spilling or cutting, to take the full row / column on the next
page??

Can this code manage this dynamism?If not how to manage - pls guide.

Regards,
Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 1:36 pm, iweb <i...@discussions.microsoft.comwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussions.microsoft.comwrote:
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.
what's this? a page break for a printer?- Hide quoted text -
- Show quoted text -
<html>
<head>
<title>Print</title>
<style type="text/css">
..break { page-break-before: always; }
</style>
</head>
test1
<br class="break">
test2
</body>
</html>

Apr 23 '07 #7
On Apr 23, 5:14 pm, iweb <i...@discussions.microsoft.comwrote:
How will this dynamically manage the data in one page and shift the extra one
to the other page?

How will this code understand that it has to page break and where??
Please read for more information
http://msdn.microsoft.com/library/de...reakbefore.asp

Try to print my page. It should get a two pages contained 1) test1 2)
test2

Apr 23 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
785
by: Scanner2001 | last post by:
I am trying to insert a printer page break inside of a form. I do not seem to be able to do this. My form contains 3 asp panels. Each of the panels have dynamically built content, and they are...
3
13296
by: Jennie | last post by:
I am looking for a way to make the web page have a formfeed so the info from that spot will go to the top of the next printed page when I file>print the web page. I want it not to break on the...
0
399
by: Sachin | last post by:
I am trying to develope a small RTF writer to generate project report at runtime, with a limited RTF writing capability. RTF by default is only one page document, untill we intentionally put page...
0
1349
by: Sachin | last post by:
I am trying to develope a small RTF writer to generate project report at runtime, with a limited RTF writing capability. RTF by default is only one page document, untill we intentionally put page...
2
13827
by: moondaddy | last post by:
I have a page that I'm making for the sole purpose of printing and this page makes 1.5 printed pages. Is there a way to force a print page break at a specific place so when the user prints the...
8
12750
by: CJM | last post by:
What is the best way to force a page break when printing from a browser? A page in my application generates a series of tables which are usually less than will fit on a page of A4. Ideally I want...
16
8354
by: matt | last post by:
hello, ive been trying to figure something out, largely thru trial & error. thought perhaps someone else may have knowledge. i have an html table that consists of blocks of related data --...
1
4059
by: Golfingdad | last post by:
Hello Please be gentle as I'm a rookie HTML person :) ...In fact, I use Go LIve CS2 to create my HTML...I'm now (this week) starting to use Adobe's Dreamweaver CS4... My issue is that I have...
2
2440
by: matt753 | last post by:
Right now I have an invoice report than works fine for < 10 items on the order, but once there is more it will have the header on the first page with some of the items, then the rest of the items on...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5047
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
414
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.