473,404 Members | 2,213 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,404 software developers and data experts.

Printing multi-page html documents

Hi,
I have one long page (10-15 printed pages) HTML page. I'd like to be
able to control where
page breaks are (where the printer decides to start a new page) when a
user prints the page.

The data that is being printed out is all text with no graphics.
Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?

If not HTML, how about in CSS, can I do it that way?

Thanks very much,

Mike
Sep 26 '06 #1
3 5618
In article <20******************@news.adelphia.net>, <Milagrowrote:
Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?

If not HTML, how about in CSS, can I do it that way?
See http://www.htmlhelp.com/faq/html/eff...tml#page-break
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"If at first you don't succeed, then plug it in and try again."
Sep 26 '06 #2
On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.orgwrote:
>In article <20******************@news.adelphia.net>, <Milagrowrote:
>Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?

If not HTML, how about in CSS, can I do it that way?

See http://www.htmlhelp.com/faq/html/eff...tml#page-break
As a clarification of that:

{page-break-before: always} is actually pretty well supported - IE6,
Firefox, Opera, and I think also Safari.

However, given the quite correct warning on that page that other peoples
font size - and indeed their paper size - may well be different,
{page-break-inside: avoid} is often more useful, when used with
appropriate bracketing elements. Sadly I believe Opera is about the only
browser that supports it.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Sep 26 '06 #3
On 2006-09-26 16:14:15 -0400, Stephen Poley
<sb******************@xs4all.nlsaid:
On Tue, 26 Sep 2006 19:34:36 +0000 (UTC), Darin McGrew
<mc****@stanfordalumni.orgwrote:
>In article <20******************@news.adelphia.net>, <Milagrowrote:
>>Is there some simple HTML tag/command that I can put into the page so
it will tell whatever printer it's using "Hey, start a new page!". ?

If not HTML, how about in CSS, can I do it that way?

See http://www.htmlhelp.com/faq/html/eff...tml#page-break

As a clarification of that:

{page-break-before: always} is actually pretty well supported - IE6,
Firefox, Opera, and I think also Safari.

However, given the quite correct warning on that page that other peoples
font size - and indeed their paper size - may well be different,
{page-break-inside: avoid} is often more useful, when used with
appropriate bracketing elements. Sadly I believe Opera is about the only
browser that supports it.
Thanks for the help!

Sep 26 '06 #4

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

Similar topics

6
by: Roger Binns | last post by:
My program has a random smattering of print statements scattered throughout that are mainly a debugging aid. They are typically things like this: print "entering key mode" The code is...
11
by: Marian Aldenhövel | last post by:
Hi, I am very new to Python and have run into the following problem. If I do something like dir = os.listdir(somepath) for d in dir: print d The program fails for filenames that contain...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
0
by: Justin | last post by:
I am trying to print multiple copies of an invoice. (rather than the tractor feed multi part forms that keep causing problems) I need to print two invoices at one location so that there are two...
5
by: Paul | last post by:
I have a simple database - 3 fields (Parent,Component,Qty) and I link this table to itself using Master File Parent and Link File Component. This creates a multi-indented table which I would...
1
by: John | last post by:
Hi I am looking into Oki ML 590 and ML 591 printers to see if any of these will work with multi-part (multiple copies) continuous stationery for printing invoices from access. Has anyone had any...
4
by: DS | last post by:
Anyway to build a form to preview a report and also either print or cancel from that form? I need to do this without the use of menu bars. Thanks DS
2
by: woodensails | last post by:
I have a table with multi objects among which are surname and spouse. This is part of a membership list, I would like to print membership cards for member and spouse. No problem doing separate...
1
by: Yatin Bhuta | last post by:
Hi, I have a web form, which has many text boxes and a few buttons. One of the button is to print the web form. Some of the text boxes are multi line. Due to screen space limitation the...
1
by: Anish G | last post by:
Hi, I am trying to print multiple label images in case of ups multi label implementaion. The response i get in XML schema and from that i parsedout the label images and stored in an array and from...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.