473,568 Members | 2,962 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 11094
On Apr 23, 12:10 pm, iweb <i...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
Yes, Page break for printing.

Akshay.

"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
Yes, Page break for printing.
Akshay.
"Alexey Smirnov" wrote:
On Apr 23, 12:10 pm, iweb <i...@discussio ns.microsoft.co mwrote:
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...@discussio ns.microsoft.co mwrote:
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 dynamically displayed based on certain conditions. What I want to do, and I thought this would be pretty easy, is when printing, start each panels...
3
13299
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 screen but when I print the page. Is there such a JavaScript? TY
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 breaks in it, on the other hand Project report consists of number of pages. Thus, what should the criteria to decide page break insertion? How to...
0
1359
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 breaks in it, on the other hand Project report consists of number of pages. Thus, what should the criteria to decide page break insertion? How to...
2
13832
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 page, it wont arbitrarily break in the middle of a table or line of text? Thanks. -- moondaddy@nospam.com
8
12759
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 to introduce a page break between each table when printing. I'm not sure what options I have available. I know there is some support in CSS but...
16
8364
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 -- each block contains three rows. this table is destined for paper printing. i would like to tell the browser *not* to bust up my blocks. rather, i...
1
4073
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 HTML that is used locally at the PC level...It's a series of JPGs, tables, and text boxes that can be printed out in a report format (converted to a...
2
2452
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 the second with the footer at the bottom. (the report only has one header and one footer no matter how many pages) All items are in the detail...
0
7605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5217
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
933
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.