473,805 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET Page Breaks

Hi. I have an asp.net webform I need to make 'printer-friendly'. Problem is
that content on the webform is dynamic - subject to change size, spacing,
etc. Is there a way I can programatically define page-breaks on the form,
which would cause page breaks when the form is printed?

Thanks.
May 8 '07 #1
2 2506
Hi. I have an asp.net webform I need to make 'printer-friendly'.
Problem is that content on the webform is dynamic - subject to change
size, spacing, etc. Is there a way I can programatically define
page-breaks on the form, which would cause page breaks when the form
is printed?

Thanks.
see http://msdn2.microsoft.com/en-us/library/ms530844.aspx
(page-break-before Attribute)
Hans Kesting
May 8 '07 #2
Perfect - Thank you!

"Hans Kesting" wrote:
Hi. I have an asp.net webform I need to make 'printer-friendly'.
Problem is that content on the webform is dynamic - subject to change
size, spacing, etc. Is there a way I can programatically define
page-breaks on the form, which would cause page breaks when the form
is printed?

Thanks.

see http://msdn2.microsoft.com/en-us/library/ms530844.aspx
(page-break-before Attribute)
Hans Kesting
May 8 '07 #3

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

Similar topics

1
2650
by: Scott | last post by:
Was not sure if this was the place to post this or not, so if not, can someone point me in the right direction. Here is my problem - I have an ASP page the is generating a file with HTML that is being opened with WORD. Can anyone give me a simple method, idea, function, example, resourse, etc.... to figure out how to handle PAGE BREAKS. I am not sure how to handle when to put the breaks in for the report that is being created. Any...
4
2877
by: Ben | last post by:
I have a page for my company that I need assistance with: http://www.eastex.net/ben/NewETN/subPage.htm When you resize the window (NS or IE) small enough that you have to scroll horizontally (because of logo image), scrolling right breaks the layout. I'm using 100% div widths, and these apparently don't reset when scrolling. I tried using a min-width and IE hack for min-width ( width:expression(document.body.clientWidth < 550 ? "450px"...
2
1084
by: darrel | last post by:
We have a bunch of usercontrols we are using on our site. One of them calls functions in a compiled DLL (is that a 'resource' in VS.net terminology?) The pages that contains all of these controls work just fine. We've made a new page, error.aspx that we're going to use for our custom 404 page. If we load/navigate directly to this page, no problem. If we get to this page via IIS redirect (for page not found) the one control that depends on...
2
2629
by: tomh | last post by:
I have a repeater which displays records from a database in table form. Each record is placed in its own table of about 3 columns and ten rows. This website is intended to be printed and prints out to about 10 pages, although there are page breaks in the middle of some of the tables, causes the data to be split up. Using a repeater I cannot specifically say where I want a page break, or can I?. Is there anyway to keep the tables intact,...
1
2564
by: kaosyeti | last post by:
hey... i have a report that groups on salespeople. the report footer is a three part summary of the store's total data with 2 different departments for parts 1 and 2 and a store total for part 3. part of the form that creates the report is the ability to select a specific department. it is when that happens, that i need 2 of the 3 parts of the report footer to be visible=false. now i've got that working but here's the real problem. ...
5
3009
by: Jens | last post by:
Posted to: comp.periphs.printers comp.lang.c comp.lang.postscript Hello, I am looking for some publically available methods/algorithms or C source code for detecting
0
1359
by: bblue | last post by:
hi, I need help in implementing page breaks in XML files? any suggestion on how can this be done? do you recommend using processing instructions or add a new elements would make more sense? can the processing instruction page number help in my case? To clarify things up, I know the content is displayed after being rendered to some XMLObjects tool. We mainly display digital content marked up in XML in our application after being rendered. ...
2
2269
by: pollock | last post by:
I am trying to create a form that allows users to paste information (a full adress) from an other application (xml based ) into an access 97 text box - then use vba code to split the string into substrings and copy them to other text boxes using the (existing) page breaks that are in the text string but unfortunately i cannot work out how to refer to the breaks in code, they do show up as double square characters if I pass the text to a string...
5
5448
by: Andreas Prilop | last post by:
Firefox 3 (like older versions) ignores TR { page-break-before: always } for the first row of a TBODY. Sample page: http://www.unics.uni-hannover.de/nhtcapri/temp/1000.html Choose "Print Preview". Internet Explorer 6/7 prints every row onto a new page;
0
9718
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10613
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10368
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
10107
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9186
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6876
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5678
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4327
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 we have to send another system
3
3008
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.