i have a long report to print from a html page. My HTML page contains different kind of car what i want exactly is to put a break page after each category of car.
can i do it in dhtml or with any script??
How is the data produced for the page?? By that, I mean are you reading it from a database??
If you are reading it from a database, then you can view one category at a time, with Next / Back buttons to show the next / previous group of cars. - Call the same page passing the previously shown Category as a parameter (in the URL I normally do it) and a direction parameter. Create the SQL statement on the fly to pull the correct records from the database.
in fact, it is an asp page that i read data from a database.
Williams, with the way u do, can i click on print once and it will print all the pages?
if not, it's could be a bit too long to print about 500 pages with NEXT/BACK button .
thanx
ps, thank you iza, i am new in dhtml so i can't do it without an example.
If you want to print out the entire set of pages from one button, you could just set up another page to do this. Then the user has two options, print the page being viewed, or print the entire "document".
You might need to open the second <P> as iza suggests. Also, what browser you using to test it? Last time I checked, no version of NS supported any way to insert page breaks. But with opening the 2nd <P>, that should work in IE just fine (I've made multiple reports that take advantage of the page-break-after).
i am using this code and it works now with IE
<html>
<body>
<P STYLE="page-break-after='always'">
...
<P STYLE="page-break-after='always'">
..
</body>
</html>
attention
<P STYLE="page-break-after='always'">
...
it won't work if the contain to be displayed in this zone
exceeds the limit of one page.
</P>
In HTML it´s simply a button using the URL to next page.
Where is the problem?
Is it necessary to make one 3 feet page ? The transfer time
for this page will be unpleasant long. ---G.Hoffmann
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.