473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

page break style with aspx form

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 content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?

Thanks,
J
Nov 22 '05 #1
2 3677
In message <u3**************@tk2msftngp13.phx.gbl>, Scanner2001
<je************@hotmail.com> writes
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 content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?


Add the following code to the page displayed in IE where you require a
Real Physical Page Break when printed.

<P style="page-break-after:always;">&nbsp;</P>

You may gain an extra blank line when displayed in the browser (depends
on version in use) however, when IE sends the data to your printer it
should force a proper Page-Break to occur immediately after this line.

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #2
In message <u3**************@tk2msftngp13.phx.gbl>, Scanner2001
<je************@hotmail.com> writes
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 content on a new page. It is ok if the content
spans multiple pages, just want to start it on a new page when printing. I
have tried to put an <HR> tag in between the panels and build the page break
after style from the format menu, and included my own style sheet, and apply
a page break style. Nothing seems to work.
I know my style syntax is correct, because I can take a standard html
page and apply page break after styles to text and elements and it works.
(samples: P.page { page-break-after: always } )
Any suggestions on how to accomplish this?


Add the following code to the page displayed in IE where you require a
Real Physical Page Break when printed.

<P style="page-break-after:always;">&nbsp;</P>

You may gain an extra blank line when displayed in the browser (depends
on version in use) however, when IE sends the data to your printer it
should force a proper Page-Break to occur immediately after this line.

--
Andrew D. Newbould E-Mail: ne********@NOSPAMzadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Nov 22 '05 #3

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

Similar topics

1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
1
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
by: Barbara Alderton | last post by:
I recently wrote an ASP.NET app that used user controls. I produced a printer-friendly output form. One requirement was a pagebreak between one part of the form and another. I had no problem...
2
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...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
5
by: k.vanderstarren | last post by:
Hi All, I'm trying to convert some ASP.NET code that I found at http://weblogs.asp.net/dannychen/archive/2005/12/02/432190.aspx from VB to C#. I've managed to convert the portion that is in...
4
by: pbd22 | last post by:
hi. could somebody tell me, when uploading a file, i know the form where the upload component is must have enctype=multipart/form-data but, is the same true for the form with the server code to...
4
daJunkCollector
by: daJunkCollector | last post by:
I am using AJAX to dynamically load content into a <div> layer. As it stands, I am loading .html's into the <div> layer and it works awesome. The problem is that when I try to replace the .html...
3
by: premprakashbhati | last post by:
hi, good evening.. i am going to upload an image in a web form .....for that iam using HTML input(file) control and one web control button i.e., Upload_Button() here is the code ...its work fine...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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,...
0
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...
0
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...
0
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,...
0
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...

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.