473,626 Members | 3,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to separate a html text in order to print each part in individual pages?

Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a single html text that contains different
informations that are displayed alltogether in the same browser.
When I print this page, the browser should put each different subject
in a separate page and not having it all mixed up.
Is it possible? How should i do it?

Ps.: This text can't be divided in different html files, it is only one
html file.

Thanks in advance,
Marcel.

Jul 21 '05 #1
4 7418
<ma******@yahoo .com> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a single html text that contains different
informations that are displayed alltogether in the same browser.
When I print this page, the browser should put each different subject
in a separate page and not having it all mixed up.
Is it possible? How should i do it?

Ps.: This text can't be divided in different html files, it is only one
html file.


CSS might help you...:
http://www.w3schools.com/css/css_ref_print.asp

--
Dag.
Jul 21 '05 #2
ma******@yahoo. com wrote:
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will
each page be printed.
In other words, I have a single html text that contains different
informations that are displayed alltogether in the same browser.
When I print this page, the browser should put each different subject
in a separate page and not having it all mixed up.
Is it possible? How should i do it?

Ps.: This text can't be divided in different html files, it is only one
html file.

Thanks in advance,
Marcel.


To start with, this seems a peculiar goal; if it is desirable to render
separable parts of content "all mixed up" in one medium, why is it
desirable to separate parts of the same content in another?
The CSS media property is intended to permit one to 'render' a resource
differently in different media. Some combined use of media with other
CSS properties, such as class, might result in what you describe, but I
think that would--to put it nicely--extend the idea of rendering way
beyond what's intended by the standard. It would in any case be very
contrived.
I think the given html fails to achieve its objective. Re-consider
whether the content should be all mixed up in any medium.
Jul 21 '05 #3

ma******@yahoo. com wrote:
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text will each page be printed.


@media print {
h1 {
page-break-before: always;
}
}

will put cause each <h1> heading to start a new page.

See http://www.w3.org/TR/CSS21/page.html for CSS properties for "paged
media".

You will need to investigate whether browsers actually implement these
properties.

--Phil.

Jul 21 '05 #4
ph*******@treef ic.com wrote:
ma******@yahoo. com wrote:
Hello,
I am a novice/moderate html programmer and I wonder how to tell the
browser from which start point and to which end point in the text


will
each page be printed.

@media print {
h1 {
page-break-before: always;
}
}

will put cause each <h1> heading to start a new page.

See http://www.w3.org/TR/CSS21/page.html for CSS properties for "paged
media".

You will need to investigate whether browsers actually implement these
properties.


IE6 does; therefore, I'd suspect, without certainty, that newer,
full-featured browsers do.
Jul 21 '05 #5

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

Similar topics

2
2441
by: bbxrider | last post by:
one of my fist asp pages i have vbscript rountines that are sending page text with response.write they are in the asp file before regular html text yet the html text appears first on the page??? how do you control which text comes where
4
1407
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a single html text that contains different informations that are displayed alltogether in the same browser. When I print this page, the browser should put each different subject in a separate page and not having it all mixed up. Is it possible? How...
0
1393
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a single html text that contains different informations that are displayed alltogether in the same browser. When I print this page, the browser should put each different subject in a separate page and not having it all mixed up. Is it possible? How...
0
1895
by: dleh | last post by:
I have been tasked with producing a server application that will convert excel files to html. I have no experience of developing under Windows, (but plenty of UNIX/C++ experience) but I picked up a copy of Visual Studio .Net and managed to produce the attached C# code expecting it to save each worksheet as a separate html file. Unfortunately I just end up with multiple copies of the entire workbook. Can anyone explain why this isn't...
2
529
by: Frank | last post by:
From: "Frank" <fkaesser@pfmail.com> Subject: Can I Use HTML Text Writer i a Custom Control to Render the <head> Section? Date: Wednesday, January 18, 2006 11:38 AM I would like to create a custom control that generates everything that will be in the <head> </head> section. This would allow me to make changes on all pages withing a site in one location.
1
5061
by: rakesh kakarla | last post by:
Hey guys, Does anyone of you know how to count the number of pages that A HTML page would print. My objective is to count the number of pages in an HTML page using javascript. my application cannot use the WINDOWS PRINT PREVIEW element.? thank you Rakesh
1
1349
by: Homer J. Simpson | last post by:
I've been toying with ASP.NET 2.0 for a few weeks now, and have only recently started looking at the login controls. The ASP.NET web site admin tool lets you create access/deny rules that apply to individual folders. Is it possible to extend that to individual pages? For example, I have the following site hierarchy: SectionA page1.aspx page2.aspx
5
3982
by: ajos | last post by:
hi frnds, this is the way i ve written--> <html:text name="bdgtmastForm" property="publicity_code" size="5" maxlength="5"> but its giving me an error which seems irrelevent.. type Exception report message
3
2735
by: thelma | last post by:
I am generating an HTML form in PHP. I'd like to see the HTML statements that I've written, but both the echo and print commands respond by actually executing the HTML. How can I see the raw HTML text? thanks, --thelma
0
8265
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
8196
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8504
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
7193
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
5574
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
4092
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1511
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.